Repository: flex-utilities
Updated Branches:
  refs/heads/develop d49cc39b8 -> cc164f319


Added a new "flex-tool-api" module containing interfaces to simplify flex tool 
integration into other products.


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/cc164f31
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/cc164f31
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/cc164f31

Branch: refs/heads/develop
Commit: cc164f3192d8c21ac50b7a5de456893394a4b0a9
Parents: d49cc39
Author: Christofer Dutz <[email protected]>
Authored: Thu Oct 30 12:39:17 2014 +0100
Committer: Christofer Dutz <[email protected]>
Committed: Thu Oct 30 12:39:17 2014 +0100

----------------------------------------------------------------------
 flex-tool-api/pom.xml                           | 58 ++++++++++++++++++++
 .../java/org/apache/flex/tools/FlexTool.java    | 39 +++++++++++++
 2 files changed, 97 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/cc164f31/flex-tool-api/pom.xml
----------------------------------------------------------------------
diff --git a/flex-tool-api/pom.xml b/flex-tool-api/pom.xml
new file mode 100644
index 0000000..f82ddd1
--- /dev/null
+++ b/flex-tool-api/pom.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>14</version>
+    </parent>
+
+    <groupId>org.apache.flex</groupId>
+    <artifactId>flex-tool-api</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>Flex Tool API</name>
+    <description>Set of API classes making flex tool integration 
easier.</description>
+    <url>http://flex.apache.org/</url>
+    <inceptionYear>2014</inceptionYear>
+
+    <mailingLists>
+        <mailingList>
+            <name>Apache Flex User List</name>
+            <subscribe>[email protected]</subscribe>
+            <unsubscribe>[email protected]</unsubscribe>
+            <post>[email protected]</post>
+            
<archive>http://mail-archives.apache.org/mod_mbox/flex-users/</archive>
+        </mailingList>
+    </mailingLists>
+
+    <scm>
+        
<connection>scm:svn:https://git-wip-us.apache.org/repos/asf/flex-utilities.git</connection>
+        
<developerConnection>scm:svn:https://git-wip-us.apache.org/repos/asf/flex-utilities.git</developerConnection>
+        <url>https://git-wip-us.apache.org/repos/asf/flex-utilities.git</url>
+    </scm>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/cc164f31/flex-tool-api/src/main/java/org/apache/flex/tools/FlexTool.java
----------------------------------------------------------------------
diff --git a/flex-tool-api/src/main/java/org/apache/flex/tools/FlexTool.java 
b/flex-tool-api/src/main/java/org/apache/flex/tools/FlexTool.java
new file mode 100644
index 0000000..ddf55d4
--- /dev/null
+++ b/flex-tool-api/src/main/java/org/apache/flex/tools/FlexTool.java
@@ -0,0 +1,39 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package org.apache.flex.tools;
+
+/**
+ * This interface defines the entry point for any tool needing to
+ * invoke a flex tool.
+ */
+public interface FlexTool {
+
+    String getToolName();
+
+    String getToolGroupName();
+
+    /**
+     * Execute the flex tool and pass in an array of commandline arguments.
+     * @param args arguments passed to the tool.
+     * @return the return code returned by the tool.
+     */
+    int executeTool(String[] args);
+
+}

Reply via email to