You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2014/11/10 14:10:10 UTC
git commit: [flex-utilities] [refs/heads/develop] - Added some
constants for well known tools.
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 <ch...@codecentric.de>
Authored: Mon Nov 10 14:10:03 2014 +0100
Committer: Christofer Dutz <ch...@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 {