[osflash] Invoking Flex compilers from Java?

David Holroyd osflash at badgers-in-foil.co.uk
Sat Oct 13 16:57:02 PDT 2007


Since I generate all sorts of ActionScript code, its handy to check that
the generated code compiles from my JUnit tests.

Just exec()'ing compc from the unit test (and paying the cost of another
JVM startup) for every test slooow.

I could (subject to neutralising those System.exit() calls) just invoke
compc's main() from the unit test, but I'd still have the compiler be
doing all sorts of linking and file generation etc. that I don't really
need.  Having the syntactic and semantic checks alone would do.

Has anyone seen descriptions of directly invoking the flex compiler APIs
from Java?


ta,
dave

-- 
http://david.holroyd.me.uk/



More information about the osflash mailing list