I changed all environment variables to show the my latest download of flexjs
0.7 i restarted the pc to be sure of the changes. I import the new "Launch
Configurations" from the latest flexjs and i noticed many configuration
additions and changes. First I checked the "FlexJS (FalconJX Debug and
Release Build)" and "FlexJS (FalconJX Debug Build)" and only by adding the
"-remove-circulars" compiler options they work fine.
I also added the -d parameter in arguments for calling these scripts to have
a verbose logging.
The Ant Builds "FlexJS (Cordova Build)" and "FlexJS (Cordova Run)" they
throw me these errors at the start in Flash Builder's console

Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Unknown target: Flash
Unknown target: Builder
Unknown target: 4.7\MyFirstFlexJS
Buildfile: C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml
 +Datatype fb.exportReleaseBuild
com.adobe.flexbuilder.exportimport.ant.ExportReleaseBuildTask
 +Datatype eclipse.convertPath org.eclipse.core.resources.ant.ConvertPath
 +Datatype eclipse.incrementalBuild
org.eclipse.core.resources.ant.IncrementalBuild
.
.
.

BUILD FAILED
C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml:114: The directory
C:\Users\maimoy\Adobe\src does not exist
        at
org.apache.tools.ant.taskdefs.ExecTask.checkConfiguration(ExecTask.java:511)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:494)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
.
.
.

As I am seeing is trying and creates a directory under user directory named
Adobe and is searching for a folder src that don't exists. Inside this Adobe
directory created, there are created also
"C:\Users\maimoy\Adobe\app\MyFirstFlexJS" which is a cordova application
structure inside it.

 I also tried to run the command:
ant -v -f cordova-buildFromJS07.xml

from inside directory C:\Users\maimoy\Adobe Flash Builder 4.7\MyFirstFlexJS
which is the flex builder folder for the project inside the workspace. I
also set inside the env.properties file 

env.AIR_HOME=C:\\AdobeAIRSDK
env.FALCON_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.FALCONJX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.FLASHPLAYER_DEBUGGER=C:\\Program Files\\Adobe\\Flash Player Content
Debugger\\flashplayer_21_sa_debug.exe
env.FLEX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.GOOG_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty\\js\\lib\\google\\closure-library
env.PLAYERGLOBAL_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty\\frameworks\\libs\\player

according to my environment windows variables to explicitly set them.

Here is the output from the execution of above command in Command Prompt
elevated opened as administrator.

Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Buildfile: C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\cordova-buildFromJS07.xml
Detected Java version: 1.8 in: C:\Program Files\Java\jdk1.8.0_40\jre
Detected OS: Windows 8.1
parsing buildfile C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\cordova-buildFromJS07.xml with URI =
file:/C:/Users/maimoy/Adobe%20Flash%20Builder%204.7/MyFirstFlexJS/cordova-buildFromJS07.xml
Project base dir set to: C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS
parsing buildfile
jar:file:/C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
 [property] Loading Environment env.
[available] Unable to find dir app\MyFirstFlexJS to set property
app.dir.exists
Build sequence for target(s) `main' is [makedir, create, compilejs, purge,
copyfiles, main]
Complete build sequence is [makedir, create, compilejs, purge, copyfiles,
main, run, clean, super-clean, ]

makedir:
    [mkdir] Created dir: C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\app

create:
     [exec] Current OS is Windows 8.1
     [exec] Executing 'cordova.cmd' with arguments:
     [exec] 'create'
     [exec] 'MyFirstFlexJS'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] Creating a new cordova project.
     [echo] Adding in platform(s). This may take awhile.
     [exec] Current OS is Windows 8.1
     [exec] Executing 'cordova.cmd' with arguments:
     [exec] 'platform'
     [exec] 'add'
     [exec] 'android'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] Adding android project...
     [exec] Creating Cordova project for the Android platform:
     [exec]     Path: platforms\android
     [exec]     Package: io.cordova.hellocordova
     [exec]     Name: HelloCordova
     [exec]     Activity: MainActivity
     [exec]     Android target: android-23
     [exec] Android project created with [email protected]
     [exec] Discovered plugin "cordova-plugin-whitelist" in config.xml.
Adding it to the project
     [exec] Fetching plugin "cordova-plugin-whitelist@1" via npm
     [exec] Installing "cordova-plugin-whitelist" for android
     [exec] 
     [exec]                This plugin is only applicable for versions of
cordova-android greater than 4.0. If you have a previous platform version,
you do *not* need this plugin since the whitelist will be built in.
     [exec]           

compilejs:
     [echo] Compiling FlexJS app
     [exec] Current OS is Windows 8.1
     [exec] Executing 'mxmlc' with arguments:
     [exec] 'MyFirstFlexJS.mxml'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
BUILD FAILED
C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\cordova-buildFromJS07.xml:114: Execute failed:
java.io.IOException: Cannot run program "mxmlc" (in directory
"C:\Users\maimoy\Adobe Flash Builder 4.7\MyFirstFlexJS\src"): CreateProcess
error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at
org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
        at org.apache.tools.ant.Main.runBuild(Main.java:853)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot
find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 24 more


Are there any parameters that must be set in "External Tools Confuguration"
in Flash builder for the script to run correctly?

Can it be run from command prompt with some more parameters?

Thank you













--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12880.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to