We have a very large Flex2 application with several hundred classes
and around a dozen RSL (swc files). We've been using the flex2 eclipse
IDE to do builds but would like to automate it and throw it in our
CruiseControl server. I'm using nant to perform the build.

I've been using the command line compilers -- compc.exe to build the
.swc files. I am using config xml files with the -load-config parameter. 

I don't see any other way to build .swc files without having to
manually tell compc .exe which classes to include (among other things).

Beyond this being tedious, every time a new class is added, removed or
renamed, the hard coded build script will blow up or at least won't
include what it should. Perhaps I'm missing something, but I didn't
see any way to have the command line compilers read the already
existing project files such as .actionScriptProperties and
.flexLibProperties that already have all the information I need to
build a .swc file.

Now I could build my own executable that reads these project files and
build new config  xml files on the fly for compc. This way I can make
a truly automated build that will read any changes made to the flex
projects.

Is there a better way to accomplish an automated build for large Flex2
apps?

Thanks,
Tim

Reply via email to