You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Michael Schmalle <te...@gmail.com> on 2015/05/26 23:14:03 UTC

[FalconJX] Testing the compiler with FlexJS targets

Alex, you said that you run the compiler with Eclipse args to test output
and be able to step through the code.

Can you give me a couple of your example run configs/args?

The best way for me to get back into the compiler and see what you are
doing with the flexjs emitter is to step through and see what is going on.

Mike

Re: [FalconJX] Testing the compiler with FlexJS targets

Posted by Michael Schmalle <te...@gmail.com>.
Thanks.

OT Erik had committed a Eclipse formatter XML file for the Eclipse
formatter, was that removed? I have been looking for it and can't find it.

Mike

On Tue, May 26, 2015 at 6:18 PM, Alex Harui <ah...@adobe.com> wrote:

>
>
> On 5/26/15, 2:14 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >Alex, you said that you run the compiler with Eclipse args to test output
> >and be able to step through the code.
> >
> >Can you give me a couple of your example run configs/args?
>
> Here are two of them. The first cross-compiles, the second builds a swf:
>
> =============
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
> <listEntry
> value="/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java"/>
> </listAttribute>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
> <listEntry value="1"/>
> </listAttribute>
> <mapAttribute key="org.eclipse.debug.core.environmentVariables">
> <mapEntry key="GOOG_HOME" value="/Users/aharui/closure-library-master"/>
> <mapEntry key="PLAYERGLOBAL_HOME" value="/Users/aharui/adobe/flashplayer"/>
> </mapAttribute>
> <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
> value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.deb
> ug.ui.launcher.StandardVMType/JDK1.7.0_67"/>
> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
> value="org.apache.flex.compiler.clients.MXMLJSC"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
> value="+flexlib=&quot;/Users/aharui/git/flex/master/flex-asjs/frameworks&qu
> ot; -debug -compiler.mxml.children-as-data
> -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEven
> t
> -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChang
> eEvent -compiler.binding-value-change-event-type=valueChange
> -js-output-type=FLEXJS
> -sdk-js-lib=/Users/aharui/git/flex/master/flex-asjs/frameworks/js/FlexJS/sr
> c
> -sdk-js-lib=/Users/aharui/git/flex/master/flex-asjs/frameworks/js/FlexJS/li
> bs -closure-lib=/Users/aharui/closure-library-master
> &quot;/Users/aharui/Flex
> Demos/DataBindingTest/src/DataBindingTest.mxml&quot;"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
> value="compiler.jx"/>
> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
> value="-Dflexcompiler=&quot;/Users/aharui/git/flex/master/flex-falcon/compi
> ler/generated/dist/sdk/lib&quot;
> -Dflexlib=&quot;/Users/aharui/git/flex/master/flex-asjs/frameworks&quot;"/>
> </launchConfiguration>
>
> =============
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
> <listEntry
> value="/compiler/src/org/apache/flex/compiler/clients/MXMLC.java"/>
> </listAttribute>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
> <listEntry value="1"/>
> </listAttribute>
> <mapAttribute key="org.eclipse.debug.core.environmentVariables">
> <mapEntry key="GOOG_HOME" value="/Users/aharui/closure-library-master"/>
> <mapEntry key="PLAYERGLOBAL_HOME" value="/Users/aharui/adobe/flashplayer"/>
> </mapAttribute>
> <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
> value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.deb
> ug.ui.launcher.StandardVMType/JDK1.7.0_67"/>
> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
> value="org.apache.flex.compiler.clients.MXMLC"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
> value="+flexlib=&quot;/Users/aharui/ApacheFlexJSLocal/frameworks&quot;
> -debug -fb &quot;/Users/aharui/Flex Demos/DataBindingTest&quot;"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
> value="compiler"/>
> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
> value="-Dflexcompiler=&quot;/Users/aharui/git/flex/master/flex-falcon/compi
> ler/generated/dist/sdk/lib&quot;
> -Dflexlib=&quot;/Users/aharui/ApacheFlexJSLocal/frameworks&quot;"/>
> </launchConfiguration>
>
> =============
>
>
>

Re: [FalconJX] Testing the compiler with FlexJS targets

Posted by Alex Harui <ah...@adobe.com>.

On 5/26/15, 2:14 PM, "Michael Schmalle" <te...@gmail.com> wrote:

>Alex, you said that you run the compiler with Eclipse args to test output
>and be able to step through the code.
>
>Can you give me a couple of your example run configs/args?

Here are two of them. The first cross-compiles, the second builds a swf:

=============
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry 
value="/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="GOOG_HOME" value="/Users/aharui/closure-library-master"/>
<mapEntry key="PLAYERGLOBAL_HOME" value="/Users/aharui/adobe/flashplayer"/>
</mapAttribute>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.deb
ug.ui.launcher.StandardVMType/JDK1.7.0_67"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.apache.flex.compiler.clients.MXMLJSC"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="+flexlib=&quot;/Users/aharui/git/flex/master/flex-asjs/frameworks&qu
ot; -debug -compiler.mxml.children-as-data
-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEven
t 
-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChang
eEvent -compiler.binding-value-change-event-type=valueChange
-js-output-type=FLEXJS
-sdk-js-lib=/Users/aharui/git/flex/master/flex-asjs/frameworks/js/FlexJS/sr
c 
-sdk-js-lib=/Users/aharui/git/flex/master/flex-asjs/frameworks/js/FlexJS/li
bs -closure-lib=/Users/aharui/closure-library-master
&quot;/Users/aharui/Flex
Demos/DataBindingTest/src/DataBindingTest.mxml&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="compiler.jx"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dflexcompiler=&quot;/Users/aharui/git/flex/master/flex-falcon/compi
ler/generated/dist/sdk/lib&quot;
-Dflexlib=&quot;/Users/aharui/git/flex/master/flex-asjs/frameworks&quot;"/>
</launchConfiguration>

=============


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry 
value="/compiler/src/org/apache/flex/compiler/clients/MXMLC.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="GOOG_HOME" value="/Users/aharui/closure-library-master"/>
<mapEntry key="PLAYERGLOBAL_HOME" value="/Users/aharui/adobe/flashplayer"/>
</mapAttribute>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.deb
ug.ui.launcher.StandardVMType/JDK1.7.0_67"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.apache.flex.compiler.clients.MXMLC"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="+flexlib=&quot;/Users/aharui/ApacheFlexJSLocal/frameworks&quot;
-debug -fb &quot;/Users/aharui/Flex Demos/DataBindingTest&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="compiler"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dflexcompiler=&quot;/Users/aharui/git/flex/master/flex-falcon/compi
ler/generated/dist/sdk/lib&quot;
-Dflexlib=&quot;/Users/aharui/ApacheFlexJSLocal/frameworks&quot;"/>
</launchConfiguration>

=============