compiler-jx: fixed the -version compiler option
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/61b22833 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/61b22833 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/61b22833 Branch: refs/heads/master Commit: 61b2283322e56eb503de7099ff7e3ce9f4ab1407 Parents: d210ac5 Author: Josh Tynjala <[email protected]> Authored: Wed May 17 09:47:43 2017 -0400 Committer: Josh Tynjala <[email protected]> Committed: Wed May 17 09:47:43 2017 -0400 ---------------------------------------------------------------------- .../src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/61b22833/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java ---------------------------------------------------------------------- diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java index 135b0d3..0916598 100644 --- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java +++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java @@ -41,6 +41,7 @@ import org.apache.flex.compiler.clients.problems.ProblemQueryProvider; import org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter; import org.apache.flex.compiler.codegen.js.IJSPublisher; import org.apache.flex.compiler.codegen.js.IJSWriter; +import org.apache.flex.compiler.common.VersionInfo; import org.apache.flex.compiler.config.Configuration; import org.apache.flex.compiler.config.ConfigurationBuffer; import org.apache.flex.compiler.config.Configurator; @@ -830,7 +831,10 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider, configBuffer = projectConfigurator.getConfigurationBuffer(); if (configBuffer.getVar("version") != null) //$NON-NLS-1$ + { + System.out.println(VersionInfo.buildMessage()); return false; + } if (problems.hasErrors()) return false;
