flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - try to not run SWF test if target is JS only
Date Thu, 03 Aug 2017 00:11:53 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 61bb99839 -> d360e9c11


try to not run SWF test if target is JS only


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

Branch: refs/heads/develop
Commit: d360e9c11465d8647109e94674e0c910521ca574
Parents: 61bb998
Author: Alex Harui <aharui@apache.org>
Authored: Wed Aug 2 17:11:44 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 2 17:11:49 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java   | 3 +++
 examples/flexjs/pom.xml                                           | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d360e9c1/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
----------------------------------------------------------------------
diff --git a/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
b/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
index 9fcd1f7..19bb982 100644
--- a/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
+++ b/examples/examples-tests/src/main/java/org/apache/flex/flexjs/examples/tests/ExampleBuildTest.java
@@ -67,6 +67,9 @@ public class ExampleBuildTest {
     ///////////////////////////////////////////////////////////////////
 
     protected boolean isSwfProject() {
+        String targets = System.getProperty("targets", "SWF,JSFlex");
+        if (!targets.contains("SWF"))
+            return false;
         String type = System.getProperty("type", "jar");
         return "swf".equalsIgnoreCase(type);
     }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d360e9c1/examples/flexjs/pom.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/pom.xml b/examples/flexjs/pom.xml
index 79ef510..14abd70 100644
--- a/examples/flexjs/pom.xml
+++ b/examples/flexjs/pom.xml
@@ -89,6 +89,7 @@
                 <artifactId>${project.artifactId}</artifactId>
                 <version>${project.version}</version>
                 <type>${project.packaging}</type>
+                <targets>${project.build.plugins.plugin.configuration.targets}</targets>
                 <buildDirectory>${project.build.directory}</buildDirectory>
               </systemPropertyVariables>
             </configuration>


Mime
View raw message