Build failed in Jenkins: flex-blazeds #1009

2017-07-06 Thread flex . ci . builds
See 

--
Started by timer
Building remotely on flex_sdk_slave2 in workspace 

 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # 
 > timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/flex-blazeds.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/flex-blazeds.git
 > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/flex-blazeds.git 
 > +refs/heads/*:refs/remotes/origin/*
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/develop^{commit}" # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/origin/develop^{commit}" # timeout=10
Checking out Revision 98e50204b0da67392cff211c07d88096fbf17625 
(refs/remotes/origin/develop)
 > C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # 
 > timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe checkout -f 
 > 98e50204b0da67392cff211c07d88096fbf17625
 > C:\Program Files (x86)\Git\cmd\git.exe rev-list 
 > 98e50204b0da67392cff211c07d88096fbf17625 # timeout=10
Parsing POMs
Modules changed, recalculating dependency graph
maven32-agent.jar already up to date
maven32-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[flex-blazeds] $ "C:\Program Files\Java\jdk1.7.0_67/bin/java" -cp 
c:\Jenkins\maven32-agent.jar;c:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1\boot\plexus-classworlds-2.5.1.jar;c:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/logging
 jenkins.maven3.agent.Maven32Main 
c:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1 
C:\Users\apacheflexbuild\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\2\32f78882-5bca442d
 c:\Jenkins\maven32-interceptor.jar c:\Jenkins\maven3-interceptor-commons.jar 
56574
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 clean 
verify
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Flex - BlazeDS
[INFO] flex-messaging-archetypes
[INFO] blazeds-spring-boot-example-archetype
[INFO] flex-messaging-common
[INFO] flex-messaging-core
[INFO] flex-messaging-proxy
[INFO] flex-messaging-remoting
[INFO] flex-messaging-opt
[INFO] flex-messaging-opt-tomcat
[INFO] flex-messaging-opt-tomcat-base
[INFO] flex-messaging-opt-tomcat-4
[INFO] flex-messaging-opt-tomcat-6
[INFO] flex-messaging-opt-tomcat-7
[INFO] blazeds-spring-boot-starter
[INFO] 
[INFO] Using the builder 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
 with a thread count of 1
[INFO] 
[INFO] 
[INFO] Building Apache Flex - BlazeDS 4.7.4-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ blazeds ---
[INFO] Deleting 

[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent (pre-unit-test) 
@ blazeds ---
[INFO] surefireArgLine set to 
-javaagent:C:\\Users\\apacheflexbuild\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.6.201602180812\\org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=c:\\Jenkins\\workspace\\flex-blazeds\\target\\coverage-reports\\jacoco-ut.exec
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ blazeds ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:report (post-unit-test) @ 
blazeds ---
[INFO] Skipping JaCoCo execution due to missing execution data 
file:
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-jdk-1.6) @ blazeds ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.1
[INFO] 
[INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ 
blazeds ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:prepare-agent 
(pre-integration-test) @ blazeds ---
[INFO] failsafeArgLine set to 
-javaagent:C:\\Users\\apacheflexbuild\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.6.201602180812\\org.jacoco.agent-0.7.6.201602180812-runtime.jar=destfile=c:\\Jenkins\\workspace\\flex-blazeds\\target\\coverage-reports\\jacoco-it.exec
[INFO] 
[INFO] --- jacoco-ma

svn commit: r1015069 - in /websites/production/flex: cgi-bin/ content/

2017-07-06 Thread aharui
Author: aharui
Date: Thu Jul  6 21:42:53 2017
New Revision: 1015069

Log:
Publishing svnmucc operation to flex site by aharui

Added:
websites/production/flex/cgi-bin/
  - copied from r1015068, websites/staging/flex/trunk/cgi-bin/
websites/production/flex/content/
  - copied from r1015068, websites/staging/flex/trunk/content/



svn commit: r1015068 - in /websites/staging/flex/trunk: cgi-bin/ content/ content/flexunit/asdoc/ content/flexunit/tutorial/ content/flexunit/tutorial/flexunit/

2017-07-06 Thread buildbot
Author: buildbot
Date: Thu Jul  6 21:39:28 2017
New Revision: 1015068

Log:
Staging update by buildbot for flex

Modified:
websites/staging/flex/trunk/cgi-bin/   (props changed)
websites/staging/flex/trunk/content/   (props changed)
websites/staging/flex/trunk/content/about-assets.html
websites/staging/flex/trunk/content/about-binaries.html
websites/staging/flex/trunk/content/about-features.html
websites/staging/flex/trunk/content/about-history.html
websites/staging/flex/trunk/content/about-licensing.html
websites/staging/flex/trunk/content/about-people.html
websites/staging/flex/trunk/content/about-privacy.html
websites/staging/flex/trunk/content/about-whatis.html
websites/staging/flex/trunk/content/community-3rdparty.html
websites/staging/flex/trunk/content/community-getinvolved.html
websites/staging/flex/trunk/content/community-mailinglists.html
websites/staging/flex/trunk/content/community-showcase.html
websites/staging/flex/trunk/content/dev-faq.html
websites/staging/flex/trunk/content/dev-sourcecode.html
websites/staging/flex/trunk/content/doc-getstarted.html
websites/staging/flex/trunk/content/doc-videos.html
websites/staging/flex/trunk/content/download-archive.html
websites/staging/flex/trunk/content/download-binaries.html
websites/staging/flex/trunk/content/download-blazeds.html
websites/staging/flex/trunk/content/download-disclaimer.html
websites/staging/flex/trunk/content/download-falconjx.html
websites/staging/flex/trunk/content/download-flexjs.html
websites/staging/flex/trunk/content/download-flexunit.html
websites/staging/flex/trunk/content/download-source.html
websites/staging/flex/trunk/content/download-squiggly.html
websites/staging/flex/trunk/content/download-tourdeflex.html
websites/staging/flex/trunk/content/download-utilities.html
websites/staging/flex/trunk/content/flexunit/asdoc/index.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-1.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-10.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-11.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-12.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-13.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-14.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-15.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-16.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-2.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-3.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-4.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-5.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-6.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-7.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-8.html
websites/staging/flex/trunk/content/flexunit/tutorial/flexunit/Unit-9.html
websites/staging/flex/trunk/content/flexunit/tutorial/index.html
websites/staging/flex/trunk/content/index.html
websites/staging/flex/trunk/content/installer.html
websites/staging/flex/trunk/content/notFound.html
websites/staging/flex/trunk/content/track-installer.html

Propchange: websites/staging/flex/trunk/cgi-bin/
--
--- cms:source-revision (original)
+++ cms:source-revision Thu Jul  6 21:39:28 2017
@@ -1 +1 @@
-1800702
+1801110

Propchange: websites/staging/flex/trunk/content/
--
--- cms:source-revision (original)
+++ cms:source-revision Thu Jul  6 21:39:28 2017
@@ -1 +1 @@
-1800702
+1801110

Modified: websites/staging/flex/trunk/content/about-assets.html
==
--- websites/staging/flex/trunk/content/about-assets.html (original)
+++ websites/staging/flex/trunk/content/about-assets.html Thu Jul  6 21:39:28 
2017
@@ -132,7 +132,7 @@
 Getting 
Started
 Videos
 Flex ASDocs
-http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/artifact/out/asdoc/index.html";>FlexJS
 ASDocs
+http://apacheflexbuild.cloudapp.net:8080/job/FlexJS_ASDoc_Example/lastSuccessfulBuild/artifact/examples/flexjs/ASDoc/bin/js-debug/index.html";>FlexJS
 ASDocs
 http://help.adobe.com/en_US/flex/using/index.html";>Documentation 
Reference (Old) 
 FlexUnit 
Tutorials
 FlexUnit ASDocs

Modified: websites/staging/flex/tr

svn commit: r1801110 - /flex/site/trunk/templates/flex-v2-header.html

2017-07-06 Thread aharui
Author: aharui
Date: Thu Jul  6 21:38:22 2017
New Revision: 1801110

URL: http://svn.apache.org/viewvc?rev=1801110&view=rev
Log:
update URL for FlexJS ASDoc

Modified:
flex/site/trunk/templates/flex-v2-header.html

Modified: flex/site/trunk/templates/flex-v2-header.html
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/templates/flex-v2-header.html?rev=1801110&r1=1801109&r2=1801110&view=diff
==
--- flex/site/trunk/templates/flex-v2-header.html (original)
+++ flex/site/trunk/templates/flex-v2-header.html Thu Jul  6 21:38:22 2017
@@ -132,7 +132,7 @@
 Getting 
Started
 Videos
 Flex ASDocs
-http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/artifact/out/asdoc/index.html";>FlexJS
 ASDocs
+http://apacheflexbuild.cloudapp.net:8080/job/FlexJS_ASDoc_Example/lastSuccessfulBuild/artifact/examples/flexjs/ASDoc/bin/js-debug/index.html";>FlexJS
 ASDocs
 http://help.adobe.com/en_US/flex/using/index.html";>Documentation 
Reference (Old) 
 FlexUnit 
Tutorials
 FlexUnit ASDocs




git commit: [flex-falcon] [refs/heads/develop] - FLEX-35335 flex-compiler-oem: updated to support dual changes

2017-07-06 Thread joshtynjala
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 33c5d98c8 -> eb57102f9


FLEX-35335 flex-compiler-oem: updated to support dual changes


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

Branch: refs/heads/develop
Commit: eb57102f911816a1a6829403ac051db2e6484fde
Parents: 33c5d98
Author: Josh Tynjala 
Authored: Thu Jul 6 11:42:38 2017 -0700
Committer: Josh Tynjala 
Committed: Thu Jul 6 11:42:48 2017 -0700

--
 .../src/main/java/flex2/tools/CompJSC.java  |  3 +-
 .../src/main/java/flex2/tools/MxmlJSC.java  | 51 ++--
 2 files changed, 4 insertions(+), 50 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/eb57102f/flex-compiler-oem/src/main/java/flex2/tools/CompJSC.java
--
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/CompJSC.java 
b/flex-compiler-oem/src/main/java/flex2/tools/CompJSC.java
index c81f180..396acd1 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/CompJSC.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/CompJSC.java
@@ -28,9 +28,8 @@ import java.lang.reflect.InvocationTargetException;
 public class CompJSC extends MxmlJSC {
 
 protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) 
throws NoSuchMethodException, IllegalAccessException, 
InvocationTargetException, InstantiationException {
-COMPILER = COMPJSC.class;
 if (compiler == null) {
-compiler = 
COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend);
+compiler = new COMPJSC();
 }
 return compiler;
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/eb57102f/flex-compiler-oem/src/main/java/flex2/tools/MxmlJSC.java
--
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/MxmlJSC.java 
b/flex-compiler-oem/src/main/java/flex2/tools/MxmlJSC.java
index 014e0be..bb7c45e 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/MxmlJSC.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/MxmlJSC.java
@@ -23,13 +23,6 @@ import org.apache.flex.compiler.clients.JSCompilerEntryPoint;
 import org.apache.flex.compiler.clients.MXMLJSC;
 import org.apache.flex.compiler.clients.problems.ProblemQuery;
 import org.apache.flex.compiler.clients.problems.ProblemQueryProvider;
-import org.apache.flex.compiler.driver.IBackend;
-import org.apache.flex.compiler.internal.driver.as.ASBackend;
-import org.apache.flex.compiler.internal.driver.js.amd.AMDBackend;
-import org.apache.flex.compiler.internal.driver.js.goog.GoogBackend;
-import org.apache.flex.compiler.internal.driver.js.jsc.JSCBackend;
-import org.apache.flex.compiler.internal.driver.js.node.NodeBackend;
-import org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend;
 import org.apache.flex.compiler.problems.ICompilerProblem;
 
 import java.lang.reflect.InvocationTargetException;
@@ -37,56 +30,18 @@ import java.util.ArrayList;
 import java.util.List;
 
 public class MxmlJSC implements ProblemQueryProvider {
-
-protected static Class COMPILER;
-
 protected JSCompilerEntryPoint compiler;
 
-protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) 
throws NoSuchMethodException, IllegalAccessException, 
InvocationTargetException, InstantiationException {
-COMPILER = MXMLJSC.class;
+protected JSCompilerEntryPoint getCompilerInstance() throws 
NoSuchMethodException, IllegalAccessException, InvocationTargetException, 
InstantiationException {
 if (compiler == null) {
-compiler = 
COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend);
+compiler = new MXMLJSC();
 }
 return compiler;
 }
 
 public int execute(String[] args) throws InvocationTargetException, 
NoSuchMethodException, InstantiationException, IllegalAccessException {
-IBackend backend = new ASBackend();
-String jsOutputTypeString = "";
-for (String s : args) {
-String[] kvp = s.split("=");
-
-if (s.contains("-js-output-type")) {
-jsOutputTypeString = kvp[1];
-}
-}
-
-if (jsOutputTypeString.equals("")) {
-jsOutputTypeString = MXMLJSC.JSOutputType.FLEXJS.getText();
-}
-
-MXMLJSC.JSOutputType jsOutputType = 
MXMLJSC.JSOutputType.fromString(jsOutputTypeString);
-switch (jsOutputType) {
-case AMD:
-backend = new AMDBackend();
-break;
-case FLEXJS:
-case FLEXJS_DUAL:
-  

git commit: [flex-asjs] [refs/heads/cordova] - setup for Cordova Publishing

2017-07-06 Thread aharui
Repository: flex-asjs
Updated Branches:
  refs/heads/cordova [created] dc8ca2154


setup for Cordova Publishing


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

Branch: refs/heads/cordova
Commit: dc8ca21545097355d723d74d75c91ab1e63382d0
Parents: 18992c5
Author: Alex Harui 
Authored: Thu Jul 6 10:54:55 2017 -0700
Committer: Alex Harui 
Committed: Thu Jul 6 10:54:55 2017 -0700

--
 examples/build_example.xml  | 10 
 examples/flexjs/CordovaCameraExample/build.xml  | 15 ++-
 .../src/main/config/compile-app-config.xml  | 26 
 examples/flexjs/MobileMap/build.xml | 16 +---
 .../src/main/config/compile-app-config.xml  |  4 +++
 examples/flexjs/MobileStocks/build.xml  |  2 +-
 .../src/main/config/compile-app-config.xml  |  4 +++
 examples/flexjs/MobileTrader/build.xml  |  2 +-
 .../src/main/config/compile-app-config.xml  |  6 +
 examples/flexjs/StorageExample/build.xml|  2 +-
 .../src/main/config/compile-app-config.xml  |  4 +++
 11 files changed, 50 insertions(+), 41 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/build_example.xml
--
diff --git a/examples/build_example.xml b/examples/build_example.xml
index d97398a..a733d46 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -383,16 +383,6 @@
 
 
 
-
-
-
-
-
-
-
-
-
-
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/flexjs/CordovaCameraExample/build.xml
--
diff --git a/examples/flexjs/CordovaCameraExample/build.xml 
b/examples/flexjs/CordovaCameraExample/build.xml
index 55bd7ae..06abb8f 100644
--- a/examples/flexjs/CordovaCameraExample/build.xml
+++ b/examples/flexjs/CordovaCameraExample/build.xml
@@ -35,25 +35,14 @@
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-   
+
 
 
 

 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/flexjs/CordovaCameraExample/src/main/config/compile-app-config.xml
--
diff --git 
a/examples/flexjs/CordovaCameraExample/src/main/config/compile-app-config.xml 
b/examples/flexjs/CordovaCameraExample/src/main/config/compile-app-config.xml
new file mode 100644
index 000..0c753a1
--- /dev/null
+++ 
b/examples/flexjs/CordovaCameraExample/src/main/config/compile-app-config.xml
@@ -0,0 +1,26 @@
+
+
+
+
+SWF
+JSFlexCordova
+
+
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/flexjs/MobileMap/build.xml
--
diff --git a/examples/flexjs/MobileMap/build.xml 
b/examples/flexjs/MobileMap/build.xml
index ce1fe68..57c7120 100644
--- a/examples/flexjs/MobileMap/build.xml
+++ b/examples/flexjs/MobileMap/build.xml
@@ -35,27 +35,13 @@
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-   
+
 
 
 

 
 
-
-
-
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/flexjs/MobileMap/src/main/config/compile-app-config.xml
--
diff --git a/examples/flexjs/MobileMap/src/main/config/compile-app-config.xml 
b/examples/flexjs/MobileMap/src/main/config/compile-app-config.xml
index 0d2aeef..fe340e0 100644
--- a/examples/flexjs/MobileMap/src/main/config/compile-app-config.xml
+++ b/examples/flexjs/MobileMap/src/main/config/compile-app-config.xml
@@ -19,6 +19,10 @@
 
 true
 
+
+SWF
+JSFlexCordova
+
 
 
../../../../../../js/libs/google_maps.swc
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc8ca215/examples/flexjs/MobileStocks/build.xml
--
diff --git a/examples/flexjs/MobileStocks/build.xml 
b/examples/flexjs/MobileStocks/build.xml
index 5959255..d425618 100644
--- a/examples/flexjs/MobileStocks/build.xml
+++ b/examples/flexjs/MobileStocks/build.xml
@@ -37,7 +37,7 @@
 
 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/bl

[2/4] git commit: [flex-falcon] [refs/heads/cordova] - cordova compiler options

2017-07-06 Thread aharui
cordova compiler options


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

Branch: refs/heads/cordova
Commit: 7b392805fa164725385cc42528179b568202cf97
Parents: b0f9dfe
Author: Alex Harui 
Authored: Mon Jun 12 21:31:22 2017 -0700
Committer: Alex Harui 
Committed: Mon Jun 12 21:31:22 2017 -0700

--
 .../driver/js/goog/JSGoogConfiguration.java | 49 
 .../flex2/compiler/common/Configuration.java| 31 +
 2 files changed, 80 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7b392805/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/goog/JSGoogConfiguration.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/goog/JSGoogConfiguration.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/goog/JSGoogConfiguration.java
index 318c90b..abea342 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/goog/JSGoogConfiguration.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/goog/JSGoogConfiguration.java
@@ -30,6 +30,7 @@ import java.util.Set;
 
 import org.apache.flex.compiler.clients.JSConfiguration;
 import org.apache.flex.compiler.clients.MXMLJSC;
+import org.apache.flex.compiler.clients.MXMLJSC.JSTargetType;
 import org.apache.flex.compiler.config.ConfigurationValue;
 import org.apache.flex.compiler.exceptions.ConfigurationException;
 import org.apache.flex.compiler.internal.config.annotations.Arguments;
@@ -402,5 +403,53 @@ public class JSGoogConfiguration extends JSConfiguration
 keepCodeWithMetadata.addAll(values);
 }
 
+//
+// 'cordova-platforms' option
+//
+
+protected final List cordovaPlatforms = new ArrayList();
+
+public List getCordovaPlatforms()
+{
+   if (cordovaPlatforms.size() == 0)
+   cordovaPlatforms.add("android");
+return cordovaPlatforms;
+}
+
+/**
+ * The list of cordova platforms outputs to generate
+ */
+@Config(allowMultiple = true, isPath = false)
+@Mapping({ "cordova-platforms" })
+@Arguments("platform")
+@InfiniteArguments
+public void setCordovaPlatforms(ConfigurationValue cv, String[] 
platformlist)
+{
+   cordovaPlatforms.clear();
+   for (String platform : platformlist)
+   cordovaPlatforms.add(platform);
+}
+
+// 'cordova-id' option
+//
+
+private String cordovaid = "org.apache.flexjs";
+
+public String getCordovaId()
+{
+return cordovaid;
+}
+
+/**
+ * Specify the id of the cordova app.  The project name is appended.
+ */
+@Config(advanced = true)
+@Mapping({ "cordova-id" })
+public void setCordovaId(ConfigurationValue cv, String id)
+{
+this.cordovaid = id;
+}
+
+
 
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7b392805/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
--
diff --git 
a/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java 
b/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
index d005472..1bc9931 100644
--- a/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
+++ b/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
@@ -2315,6 +2315,37 @@ public class Configuration implements 
LinkerConfiguration, Cloneable
 }
 }
 
+//
+// 'cordova.platforms' option
+//
+
+private List cordovaPlatforms = new LinkedList();
+
+public List getCordovaPlatforms()
+{
+return cordovaPlatforms;
+}
+
+public void cfgCordovaPlatforms( ConfigurationValue cv, List 
platforms )
+{
+   this.cordovaPlatforms = platforms;
+}
+   
+//
+// 'cordova.id' option
+//
+
+private String cordovaId = null;
+
+public String getCordovaId()
+{
+return cordovaId;
+}
+
+public void cfgCordovaId( ConfigurationValue cv, String id )
+{
+   this.cordovaId = id;
+}
 
@Override
public Configuration clone()



[3/4] git commit: [flex-falcon] [refs/heads/cordova] - cordova publishing

2017-07-06 Thread aharui
cordova publishing


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

Branch: refs/heads/cordova
Commit: 240b19099c9f32d024efbba5ff743c48784378ab
Parents: 7b39280
Author: Alex Harui 
Authored: Mon Jun 12 21:31:51 2017 -0700
Committer: Alex Harui 
Committed: Mon Jun 12 21:31:51 2017 -0700

--
 .../mxml/flexjs/MXMLFlexJSCordovaPublisher.java | 224 ++-
 .../mxml/flexjs/MXMLFlexJSPublisher.java|   2 +-
 .../compiler/internal/graph/GoogDepsWriter.java |   4 +-
 .../internal/graph/GoogDepsWriterCordova.java   |  13 +-
 4 files changed, 229 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/240b1909/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSCordovaPublisher.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSCordovaPublisher.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSCordovaPublisher.java
index 6196c44..7b15059 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSCordovaPublisher.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSCordovaPublisher.java
@@ -20,13 +20,25 @@
 package org.apache.flex.compiler.internal.codegen.mxml.flexjs;
 
 import org.apache.commons.io.FilenameUtils;
+import org.apache.commons.io.IOUtils;
 import org.apache.flex.compiler.clients.problems.ProblemQuery;
 import org.apache.flex.compiler.config.Configuration;
 import org.apache.flex.compiler.internal.codegen.js.jsc.JSCPublisher;
+import org.apache.flex.compiler.internal.driver.js.goog.JSGoogConfiguration;
+import org.apache.flex.compiler.internal.graph.GoogDepsWriter;
+import org.apache.flex.compiler.internal.graph.GoogDepsWriterCordova;
 import org.apache.flex.compiler.internal.projects.FlexJSProject;
+import org.apache.flex.swc.ISWC;
 
+import java.io.BufferedReader;
 import java.io.File;
+import java.io.FileInputStream;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import java.util.ArrayList;
 import java.util.List;
 
 public class MXMLFlexJSCordovaPublisher extends MXMLFlexJSPublisher
@@ -35,29 +47,231 @@ public class MXMLFlexJSCordovaPublisher extends 
MXMLFlexJSPublisher
 {
 super(project, config);
 }
+
+private String cordova = "cordova";
+private String[] pathEnv = new String[3];
+
+private boolean needNewProject;
+
+@Override
+protected void setupOutputFolder()
+{
+   if (!outputFolder.exists())
+   needNewProject = true;
+   super.setupOutputFolder();
+}
+
+@Override
+public File getOutputFolder()
+{
+   File newOutputFolder = super.getOutputFolder();
+   
+String osName = System.getProperty("os.name");
+if (osName.contains("Windows"))
+   cordova = "cordova.cmd";
+else
+{
+   File c = new File("/usr/local/bin/cordova");
+   if (c.exists())
+   {
+   cordova = "/usr/local/bin/cordova";
+   String home = System.getenv("HOME");
+   pathEnv[0] = "HOME=" + home;
+   File bash = new File(home + File.separator + 
".bash_login");
+   String path = System.getenv("PATH");
+   String java = System.getenv("JAVA_HOME");
+   if (path == null || !path.contains("node_modules") || 
java == null)
+   {
+   try
+   {
+   BufferedReader in = new BufferedReader(new 
InputStreamReader(new FileInputStream(bash), "UTF8"));
+
+   String line = in.readLine();
+
+   while (line != null)
+   {
+   if (line.startsWith("export JAVA_HOME=") && 
java == null)
+   {
+   java = line.substring(17);
+   }
+   else if (line.startsWith("export PATH="))
+   {
+   if (path == null)
+   path = "";
+   String oldPath = path;
+ 

[1/4] git commit: [flex-falcon] [refs/heads/cordova] - fix handling of flexjscordovaplugin

2017-07-06 Thread aharui
Repository: flex-falcon
Updated Branches:
  refs/heads/cordova [created] a44c2e749


fix handling of flexjscordovaplugin


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

Branch: refs/heads/cordova
Commit: b0f9dfee122a3abff112ee5d11789aa093f6813f
Parents: ff17848
Author: Alex Harui 
Authored: Mon Jun 12 21:30:34 2017 -0700
Committer: Alex Harui 
Committed: Mon Jun 12 21:30:34 2017 -0700

--
 .../internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java   | 1 +
 .../internal/codegen/js/jx/PackageHeaderEmitter.java| 9 +
 .../flex/compiler/utils/JSClosureCompilerWrapper.java   | 2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b0f9dfee/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java
index 0a1d2d4..cd041c0 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitterTokens.java
@@ -59,6 +59,7 @@ public enum JSFlexJSEmitterTokens implements IEmitterTokens
 SKIP_FUNCTION_COERCIONS("skipFunctionCoercions"),
 JSX("JSX"),
 VECTOR("org.apache.flex.utils.Language.Vector"),
+CORDOVA_PLUGIN("@flexjscordovaplugin"),
 ;
 
 private String token;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b0f9dfee/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
index 5d2c413..2153ea0 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
@@ -70,6 +70,7 @@ public class PackageHeaderEmitter extends JSSubEmitter 
implements
 .getAllLocalDefinitions());
 String qname = null;
 boolean isExterns = false;
+String cordovaPlugin = null;
 if (type != null)
 {
 qname = type.getQualifiedName();
@@ -83,6 +84,12 @@ public class PackageHeaderEmitter extends JSSubEmitter 
implements
 String asDocString = asDoc.commentNoEnd();
 isExterns = 
asDocString.contains(JSFlexJSEmitterTokens.EXTERNS.getToken());
 getEmitter().getModel().isExterns = isExterns;
+int c = 
asDocString.indexOf(JSFlexJSEmitterTokens.CORDOVA_PLUGIN.getToken());
+if (c != -1)
+{
+   int c2 = asDocString.indexOf("\n", c); 
+   cordovaPlugin = asDocString.substring(c + 
JSFlexJSEmitterTokens.CORDOVA_PLUGIN.getToken().length(), c2).trim();
+}
 }
 }
 }
@@ -136,6 +143,8 @@ public class PackageHeaderEmitter extends JSSubEmitter 
implements
 writeNewline(" * @fileoverview");
 if (isExterns)
writeNewline(" * @externs");
+if (cordovaPlugin != null)
+   writeNewline(" * " + 
JSFlexJSEmitterTokens.CORDOVA_PLUGIN.getToken() + " " + cordovaPlugin);
 writeNewline(" *");
 // need to suppress access controls so access to protected/private 
from defineProperties
 // doesn't generate warnings.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b0f9dfee/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
index 42ad2b3..9fb9af3 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
@@ -182,7 +182,7 @@ public class JSClosureCompilerWrappe

[4/4] git commit: [flex-falcon] [refs/heads/cordova] - better fault tolerance

2017-07-06 Thread aharui
better fault tolerance


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

Branch: refs/heads/cordova
Commit: a44c2e7499c99c052e02839c1b0a8eff3c82338e
Parents: 240b190
Author: Alex Harui 
Authored: Sat Jul 1 08:39:18 2017 -0700
Committer: Alex Harui 
Committed: Sat Jul 1 08:39:18 2017 -0700

--
 .../org/apache/flex/compiler/clients/MXMLJSC.java|  5 +++--
 .../src/main/java/flex2/tools/oem/Application.java   | 15 +++
 2 files changed, 18 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a44c2e74/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 1c72e74..24232bd 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
@@ -340,10 +340,11 @@ public class MXMLJSC implements JSCompilerEntryPoint, 
ProblemQueryProvider,
result = 
mxmlc.mainCompileOnly(removeJSArgs(args), err);
else
result = mxmlc.mainNoExit(removeJSArgs(args));
-   if (result != 0 && result != 2)
+   if (result != 0)
{
problems.addAll(mxmlc.problems.getProblems());
-   break targetloop;
+   if (problems.hasErrors())
+   break targetloop;
}
break;
case JS_FLEX:

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a44c2e74/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
--
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java 
b/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
index 11b14aa..642d241 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
@@ -678,6 +678,21 @@ public class Application implements Builder
 List sourceFiles = mxmljsc.getSourceList();
 String mainFile = mxmljsc.getMainSource();
 VirtualFile mainVirtualFile = null;
+if (sourceFiles == null)
+{
+   // maybe a config error
+   sourceFiles = new ArrayList();
+   for (VirtualFile f : files)
+   {   
+   sourceFiles.add(f.getName());
+   if (mainFile == null)
+   {
+   mainFile = f.getName();
+int lastSep = mainFile.lastIndexOf(File.separator);
+mainFile = mainFile.substring(0, lastSep);
+   }
+   }
+}
 for (String sourceFile : sourceFiles)
 {
 for (VirtualFile sourcePath : sourcePaths)



Build failed in Jenkins: flex-utilities_installer #1217

2017-07-06 Thread flex . ci . builds
See 


--
Started by timer
Building remotely on flex_sdk_slave2 in workspace 

 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # 
 > timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/flex-utilities.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/flex-utilities.git
 > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/flex-utilities.git 
 > +refs/heads/*:refs/remotes/origin/*
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse "origin/develop^{commit}" # 
 > timeout=10
Checking out Revision 8b168c154b5fba0eeba3e7a064f64b4d4d930e47 (origin/develop)
 > C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # 
 > timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe checkout -f 
 > 8b168c154b5fba0eeba3e7a064f64b4d4d930e47
 > C:\Program Files (x86)\Git\cmd\git.exe rev-list 
 > 8b168c154b5fba0eeba3e7a064f64b4d4d930e47 # timeout=10
[ant_on_air] $ cmd.exe /C 
"c:\Jenkins\tools\hudson.tasks.Ant_AntInstallation\c_apache-ant-1.9.3\bin\ant.bat
 -file build.xml -Dplayerglobal.version=11.7 main && exit %%ERRORLEVEL%%"
Buildfile: 


clean:
   [delete] Deleting directory 


init:

check-as3commons.swc:

get-as3commons.swc:

third-party:
  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 

  [get] Destination already exists (skipping): 


compile:
[compc] Loading configuration file 
C:\Jenkins\workspace\flex-sdk\frameworks\air-config.xml
[compc] 
C:\Jenkins\workspace\flex-utilities_installer\flex-installer\ant_on_air\bin\ant_on_air.swc
 (134450 bytes)
[compc] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

test:
[mxmlc] Loading configuration file 
C:\Jenkins\workspace\flex-sdk\frameworks\air-config.xml
[mxmlc] 
C:\Jenkins\workspace\flex-utilities_installer\flex-installer\ant_on_air\tests\AntOnAir.swf
 (1147463 bytes)
[mxmlc] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

failuretests:

main:

BUILD SUCCESSFUL
Total time: 1 minute 22 seconds
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[flex-installer] $ cmd.exe /C 
"c:\Jenkins\tools\hudson.tasks.Ant_AntInstallation\c_apache-ant-1.9.3\bin\ant.bat
 -file build.xml -Dplayerglobal.version=11.7 clean build source-package 
create-md5s copy-misc && exit %%ERRORLEVEL%%"
Buildfile: 


clean:
   [delete] Deleting directory 

   [delete] Deleting directory 

   [delete] Deleting directory 

   [delete] Deleting directory 


clean:

createDirs:
 [echo] ***
 [echo] Execute the update-version target once,
 [echo] and only once, when you modifiy

git commit: [flex-asjs] [refs/heads/develop] - simplify switch statement

2017-07-06 Thread jmclean
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 48f1fd801 -> d9724b829


simplify switch statement


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

Branch: refs/heads/develop
Commit: d9724b829ec36291b777617a1e37571bbfae5524
Parents: 48f1fd8
Author: Justin Mclean 
Authored: Thu Jul 6 17:17:38 2017 +1000
Committer: Justin Mclean 
Committed: Thu Jul 6 17:17:38 2017 +1000

--
 .../flex/textLayout/elements/TableElement.as  | 18 +-
 1 file changed, 5 insertions(+), 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9724b82/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TableElement.as
--
diff --git 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TableElement.as
 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TableElement.as
index d759bbe..d9a1fa8 100644
--- 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TableElement.as
+++ 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TableElement.as
@@ -1133,19 +1133,11 @@ package org.apache.flex.textLayout.elements {
addColumn();
}

-   var w:Number;
-   switch(typeof(computedFormat.tableWidth)){
-   case "number":
-   w = suggestedWidth;
-   break;
-   case "string":
-   
if(computedFormat.tableWidth.indexOf("%") > 0){
-   w = suggestedWidth / 
(parseFloat(computedFormat.tableWidth)/100);
-   break;
-   }
-   default:
-   w = suggestedWidth;
-   break;
+   var w:Number = suggestedWidth;
+   if (typeof(computedFormat.tableWidth) == "string"){
+   if(computedFormat.tableWidth.indexOf("%") > 0){
+   w = suggestedWidth / 
(parseFloat(computedFormat.tableWidth)/100);
+   }
}
if(isNaN(w))
w = 600;



Jenkins build is back to normal : flex-tlf #1123

2017-07-06 Thread flex . ci . builds
See