On 1/20/16, 10:16 AM, "Andy Dufilie" <andy.dufi...@gmail.com> wrote:

>I've been struggling for a while trying to find the right settings that
>will let me build FlexJS from the git repositories on Windows. I've
>documented my steps here now that I've managed to get the
>flex-asjs/build.xml/binary-release ant target to work:
>https://github.com/adufilie/flex-dev-setup.

Pretty good.  The FlashPlayerDebugger can be downloaded from
http://www.adobe.com/support/flashplayer/downloads.html
(it says so in our READme ;-))

>
>I had to change the flex-asjs build script a little because there was a
>conflict in the way GOOG_HOME was used in different places. I'd like
>someone to review this change before it gets incorporated:
>https://github.com/adufilie/flex-asjs/commit/e677c9c07309c9729749df76edb17
>9c43c355494

Ideally, developers like us should be able to point to different versions
of Google Closure Library and not assume it is downloaded into js/lib.  So
maybe a better set of changes is to see if env.GOOG_HOME is set and if
not, default to js/lib/...

>
>Is flex-asjs/build.xml/binary-release the correct target for getting the
>same output we get from the FlexJS nightly build?

The nightly build runs "ant release", not the "binary-release" target.

>  I haven't figured out
>how to test the build output on my own project in the same way I can test
>the nightly build. Any advice on how to do that?

1. Expand the apache-flex-flexjs-xxx-bin.zip into an empty folder.
2. From that folder, run ant -f installer.xml

That folder will now be an IDE-compatible Apache FlexJS SDK.  There is
also a way to hijack the Installer.  But most of the time, I just copy
swcs and jars into an existing folder and restart Flash Builder.


>
>Also, I recently fixed some errors in the flex-falcon/compiler.jx/bin
>scripts:
>https://github.com/apache/flex-falcon/commit/945449549ed91914193db852e1701
>4cafb440c5d
>but it seems that these files aren't even included in the FlexJS nightly
>build.  Should that folder be removed?

Ah, sorry, didn't notice that.  The flex-falcon repo has a copy of scripts
that are supposedly not as directly tied to FlexJS.  The flex-asjs repo
has its own copy of these scripts that make a few more assumptions (or
maybe those differences have gone away by now).  So you will need to make
your changes to flex-asjs/js/bin

>
>Finally, the flex-asjs "all" target still doesn't work:
>compile-asjs:
>     [echo] Cross-compiling Core
>     [echo] FALCONJX_HOME: C:\asf\flex-asjs/../flex-falcon/compiler.jx
>     [java] command line
>     [java] unable to open 'C:\asf\flex-falcon\externs\js\out\bin\js.swc'.
>     [java]
>     [java]
>     [java] command line
>     [java] unable to open
>'C:\asf\flex-falcon\externs\GCL\out\bin\GCL.swc'.
>     [java]
>     [java]
>     [java] Java Result: 5
>
>BUILD FAILED
>C:\asf\flex-asjs\build.xml:431: The following error occurred while
>executing this line:
>C:\asf\flex-asjs\frameworks\build.xml:79: The following error occurred
>while executing this line:
>C:\asf\flex-asjs\frameworks\build.xml:166: The following error occurred
>while executing this line:
>C:\asf\flex-asjs\frameworks\projects\Core\build.xml:120: Replace: source
>file
>C:\asf\flex-asjs\frameworks\projects\Core\js\out\org\apache\flex\events\IE
>ventDispatcher.js
>doesn't exist

Ugh.  Haven't tested this in a while.  Thanks for pointing it out.

-Alex

Reply via email to