OK, skip the tests.  Just run “ant” in the compiler and compiler.jx folders.  
That should be good enough to start building FlexJS stuff.  I get 4 errors when 
running unit tests from Eclipse that I don’t get from the command-line.  Not 
sure why.

Let me know of those two folders build and then try “ant” in flex-asjs.

I’ll wait up a few more minutes to see how it goes.

-Alex


From: "omup...@gmail.com<mailto:omup...@gmail.com>" 
<omup...@gmail.com<mailto:omup...@gmail.com>> on behalf of OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>>
Date: Sunday, September 20, 2015 at 11:57 PM
To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>>, 
"dev@flex.apache.org<mailto:dev@flex.apache.org>" 
<dev@flex.apache.org<mailto:dev@flex.apache.org>>
Subject: Re: AW: Compiling FlexJS

Definitely progress, but now it's erroring out on the unit tests:

=================================================================
      [get] Getting: http://search.maven.org/remotecontent?filepath=junit/junit/
4.10/junit-4.10.jar
      [get] To: c:\p\flexroot\git\flex-falcon\compiler.tests\lib\junit-4.10.jar
      [get] http://search.maven.org/remotecontent?filepath=junit/junit/4.10/juni
t-4.10.jar moved to https://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.j
ar

fail-with-message:

main:

compile.unit.tests:
    [mkdir] Created dir: c:\p\flexroot\git\flex-falcon\compiler.tests\classes
    [javac] Compiling 67 source files to c:\p\flexroot\git\flex-falcon\compiler.
tests\classes

unit.tests:
    [mkdir] Created dir: c:\p\flexroot\git\flex-falcon\compiler.tests\results
    [mkdir] Created dir: c:\p\flexroot\git\flex-falcon\compiler.tests\temp
    [junit] environment property - FLEX_HOME =
    [junit] environment property - PLAYERGLOBAL_HOME =
    [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
    [junit] environment property - TLF_HOME =
    [junit] environment property - AIR_HOME =
    [junit] environment property - FLASHPLAYER_DEBUGGER =
    [junit] Running org.apache.flex.compiler.internal.css.CSSArrayPropertyValueT
ests
    [junit] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.57
2 sec

BUILD FAILED
c:\p\flexroot\git\flex-falcon\build.xml:82: The following error occurred while e
xecuting this line:
c:\p\flexroot\git\flex-falcon\compiler.tests\build.xml:100: Tests failed

Total time: 59 seconds

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

On Sun, Sep 20, 2015 at 11:49 PM, OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>> wrote:
I'm on it.

Thanks,
Om

On Sun, Sep 20, 2015 at 11:48 PM, OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>> wrote:
I'm on it

On Sun, Sep 20, 2015 at 11:46 PM, Alex Harui 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
That sounds like your Closure Compiler is out-of-date.  Try ‘ant wipe-all’ then 
‘ant all’.

I’m hoping to shut down at midnight so let’s see if we can get you building 
before then.

-Alex

From: "omup...@gmail.com<mailto:omup...@gmail.com>" 
<omup...@gmail.com<mailto:omup...@gmail.com>> on behalf of OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>>
Date: Sunday, September 20, 2015 at 11:37 PM
To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>>

Subject: Re: AW: Compiling FlexJS

I am up-to-date with the repo and when I run ant all in flex-falcon, the script 
runs for a while before erroring out:


====================================================================================
<snip>
download-dependency:

main:

copyFiles:

compile:
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\build.xml:77: warning: 'in
cludeantruntime' was not set, defaulting to build.sysclasspath=last; set to fals
e for repeatable builds
    [javac] Compiling 149 source files to c:\p\flexroot\git\flex-falcon\compiler
.jx\build\classes
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:68: error: cannot find
 symbol
    [javac]         options.setParseJsDocDocumentation(true);
    [javac]                ^
    [javac]   symbol:   method setParseJsDocDocumentation(boolean)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:71: error: cannot find
 symbol
    [javac]         options.addCustomPass(CustomPassExecutionTime.BEFORE_OPTIMIZ
ATIONS, new NamespaceResolutionPass(model,
    [javac]                ^
    [javac]   symbol:   method addCustomPass(CustomPassExecutionTime,NamespaceRe
solutionPass)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:73: error: cannot find
 symbol
    [javac]         options.addCustomPass(CustomPassExecutionTime.BEFORE_OPTIMIZ
ATIONS, new ResolvePackagesPass(model, jscompiler));
    [javac]                ^
    [javac]   symbol:   method addCustomPass(CustomPassExecutionTime,ResolvePack
agesPass)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:75: error: cannot find
 symbol
    [javac]         options.addCustomPass(CustomPassExecutionTime.BEFORE_OPTIMIZ
ATIONS, new CollectTypesPass(model, jscompiler));
    [javac]                ^
    [javac]   symbol:   method addCustomPass(CustomPassExecutionTime,CollectType
sPass)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:76: error: cannot find
 symbol
    [javac]         options.addCustomPass(CustomPassExecutionTime.BEFORE_OPTIMIZ
ATIONS, new AddMemberPass(model, jscompiler));
    [javac]                ^
    [javac]   symbol:   method addCustomPass(CustomPassExecutionTime,AddMemberPa
ss)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\pass\ReferenceCompiler.java:78: error: cannot find
 symbol
    [javac]         options.addCustomPass(CustomPassExecutionTime.BEFORE_OPTIMIZ
ATIONS, new CollectImportsPass(model, jscompiler));
    [javac]                ^
    [javac]   symbol:   method addCustomPass(CustomPassExecutionTime,CollectImpo
rtsPass)
    [javac]   location: variable options of type JXCompilerOptions
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\reference\ClassReference.java:193: error: method b
uild in class JSDocInfoBuilder cannot be applied to given types;
    [javac]                         JSDocInfo fieldComment = b.build();
    [javac]                                                   ^
    [javac]   required: Node
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\reference\ClassReference.java:492: error: method b
uild in class JSDocInfoBuilder cannot be applied to given types;
    [javac]             comment = b.build();
    [javac]                        ^
    [javac]   required: Node
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\internal\codegen\externals\reference\ClassReference.java:512: error: method b
uild in class JSDocInfoBuilder cannot be applied to given types;
    [javac]             comment = b.build();
    [javac]                        ^
    [javac]   required: Node
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] c:\p\flexroot\git\flex-falcon\compiler.jx\src\org\apache\flex\compil
er\utils\JSClosureCompilerWrapper.java:249: error: cannot find symbol
    [javac]             options_.setWarningLevel(DiagnosticGroups.DEPRECATED_ANN
OTATIONS, CheckLevel.OFF);
    [javac]                                                      ^
    [javac]   symbol:   variable DEPRECATED_ANNOTATIONS
    [javac]   location: class DiagnosticGroups
    [javac] 10 errors

BUILD FAILED
c:\p\flexroot\git\flex-falcon\build.xml:185: The following error occurred while
executing this line:
c:\p\flexroot\git\flex-falcon\compiler.jx\build.xml:77: Compile failed; see the
compiler error output for details.

Total time: 40 seconds
====================================================================================


Any idea what's going wrong?

My java version:

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

Thanks,
Om


On Sun, Sep 20, 2015 at 11:14 PM, Alex Harui 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
"ant all" in flex-falcon should do it.

And “ant all” in flex-asjs should sync falcon and build it correctly.

-Alex

From: "omup...@gmail.com<mailto:omup...@gmail.com>" 
<omup...@gmail.com<mailto:omup...@gmail.com>> on behalf of OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>>
Date: Sunday, September 20, 2015 at 10:29 PM

To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>>
Cc: "dev@flex.apache.org<mailto:dev@flex.apache.org>" 
<dev@flex.apache.org<mailto:dev@flex.apache.org>>
Subject: Re: AW: Compiling FlexJS

Basic question: how do I build falcon?  Should I run ant and then ant all?  Or 
just ant?

(Sorry, the README and README_JX is a bit confusing)

Thanks,
Om

On Sun, Sep 20, 2015 at 10:03 PM, Alex Harui 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
Yes.  In steps 1 and 4, the compile-config.xml for each project uses 
<include-files>js/src/*</include-files> and 
<include-files>js/out/*</include-files> to copy all the handwritten and 
cross-compiled js.  The reason we do it twice is just so on step 4, there is 
cross-compiled JS output from step 2.  But if you are not using a pretty recent 
Falcon, the copy may fail because we taught Falcon to copy with wild cards.  
Older Falcon’s and regular Flex SDK CompC can’t do it.

-Alex

From: "omup...@gmail.com<mailto:omup...@gmail.com>" 
<omup...@gmail.com<mailto:omup...@gmail.com>> on behalf of OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>>
Date: Sunday, September 20, 2015 at 9:57 PM

To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>>
Cc: "dev@flex.apache.org<mailto:dev@flex.apache.org>" 
<dev@flex.apache.org<mailto:dev@flex.apache.org>>
Subject: Re: AW: Compiling FlexJS

Hmm..  is there a part that copies the js files into the swc?

Thanks,
Om

On Sun, Sep 20, 2015 at 9:24 PM, Alex Harui 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
OK, I can’t see your swcs so all I can do is guess.

The build of the swcs has four phases:


  1.  The AS in as/src is compiled by the Flash compiler into a SWC.
  2.  The AS in asjs/src is cross-compiled, using classes in the swc
  3.  The JS in js/src is linted and copied to frameworks/js/FlexJS/libs
  4.  The AS in as/src is compiled again, which should pick up files 
cross-compiled from asjs/src that are in js/out.

-Alex

From: "omup...@gmail.com<mailto:omup...@gmail.com>" 
<omup...@gmail.com<mailto:omup...@gmail.com>> on behalf of OmPrakash Muppirala 
<bigosma...@gmail.com<mailto:bigosma...@gmail.com>>
Date: Sunday, September 20, 2015 at 4:49 PM
To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>>
Cc: "dev@flex.apache.org<mailto:dev@flex.apache.org>" 
<dev@flex.apache.org<mailto:dev@flex.apache.org>>
Subject: Re: AW: Compiling FlexJS


On Sep 20, 2015 2:54 PM, "Alex Harui" 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
>
>
>
> On 9/20/15, 7:07 AM, "Christofer Dutz" 
> <christofer.d...@c-ware.de<mailto:christofer.d...@c-ware.de>> wrote:
>
> >Well I don't know how it could be fresher ... I checked out the flex-sdk,
> >flex-falcon and flex-asjs built flex-falcon (ant clean all) and flex-asjs
> >(ant clean all) ... so where could the old falcon come from?
>
> Sorry, that was a reply to Om.  I think his SWCs are too small because an
> old Falcon doesn’t know how to package the JS in the SWCs.

But it looks like there are js files in the swcs.  Just some of them are 
arbitrarily missing.  I believe i have the latest falcon code.  But I will try 
again in a while just to confirm.

Thanks,
Om

>
> -Alex
>






Reply via email to