flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject git commit: [flex-utilities] [refs/heads/develop] - Added some constants for well known tools.
Date Mon, 10 Nov 2014 13:10:10 GMT
Repository: flex-utilities
Updated Branches:
  refs/heads/develop 9c4df9469 -> 469e619c8


Added some constants for well known tools.


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

Branch: refs/heads/develop
Commit: 469e619c83983f1ca3363ee2d51d1da0d3d4ab84
Parents: 9c4df94
Author: Christofer Dutz <christofer.dutz@codecentric.de>
Authored: Mon Nov 10 14:10:03 2014 +0100
Committer: Christofer Dutz <christofer.dutz@codecentric.de>
Committed: Mon Nov 10 14:10:03 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/tools/FlexTool.java         | 7 +++++++
 .../src/main/java/org/apache/flex/tools/FlexToolGroup.java    | 4 ++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/469e619c/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
index 6e95cdf..1cee11a 100644
--- 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
@@ -25,6 +25,13 @@ package org.apache.flex.tools;
  */
 public interface FlexTool {
 
+    // Some well known constants.
+    public static final String FLEX_TOOL_COMPC = "COMPC";
+    public static final String FLEX_TOOL_MXMLC = "MXMLC";
+    public static final String FLEX_TOOL_ASDOC = "ASDOC";
+    public static final String FLEX_TOOL_DIGEST = "DIGEST";
+    public static final String FLEX_TOOL_OPTIMIZER = "OPTIMIZER";
+
     /**
      * Return the name of the tool. This name should match the names of
      * tools in alternate tool groups: MXML, COMPC, ASDOC

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/469e619c/flex-tool-api/src/main/java/org/apache/flex/tools/FlexToolGroup.java
----------------------------------------------------------------------
diff --git a/flex-tool-api/src/main/java/org/apache/flex/tools/FlexToolGroup.java b/flex-tool-api/src/main/java/org/apache/flex/tools/FlexToolGroup.java
index 759c4a9..fe87c19 100644
--- a/flex-tool-api/src/main/java/org/apache/flex/tools/FlexToolGroup.java
+++ b/flex-tool-api/src/main/java/org/apache/flex/tools/FlexToolGroup.java
@@ -25,6 +25,10 @@ import java.util.Collection;
  * Interface for defining a group of flex tools. Classes implementing this
  * interface will allow loading of flex tools using the java ServiceLoader
  * mechanism.
+ *
+ * We intentionally decided to use String names instead of constants
+ * to allow extendability in the future, so we can support more tools
+ * without having to release a new version of the tools api.
  */
 public interface FlexToolGroup {
 


Mime
View raw message