On 13.02.2013 21:39, Alex Harui wrote:
How does IntelliJ call the current MXMLC compiler? I'm looking at how
FlashBuilder calls MXMLC now and it is pretty complex.
There are 3 modes:
1. If 'Prefer ActionScript Compiler 2.0 for pure AS build
configurations' option is enabled then a new OS process is launched with
the following command line (some minor options omitted):
java -classpath [Flex SDK]/lib/compiler.jar
com.adobe.flash.compiler.clients.MXMLC
java -classpath [Flex SDK]/lib/compiler.jar
com.adobe.flash.compiler.clients.COMPC
2. Standard mxmlc/compc process:
java -classpath [Flex SDK]/lib/compc.jar flex2.tools.Mxmlc
java -classpath [Flex SDK]/lib/compc.jar flex2.tools.Compc
3. The option called 'Built-in compiler shell'. That's a single OS
process that can invoke several compilations in parallel threads. To do
this it invokes flex2.tools.Mxmlc.mxmlc(args) or
flex2.tools.Compc.compc(args).
Just curious, how Flash Builder does it?