Hi Christofer, I would certainly not claim to be an expert in the matter, but I have gathered quite some knowledge by contributing to GradleFx ( http://gradlefx.org/). Much like FlexMojos is a Maven plugin for compiling Flex apps, GradleFx is a Gradle (http://gradle.org/) plugin to achieve the same goal.
It's open-source, so you're welcome to take a look at how we implemented things. I guess you would especially be interested in the org.gradlefx.cli package ( https://github.com/GradleFx/GradleFx/tree/master/src/main/groovy/org/gradlefx/cli). We used Gradle's built-in ANT task executor to execute the compile command through Flex's own ANT task. The CommandLine Interface wrapping is fairly complete, but there are two things still missing: - module support (see https://github.com/GradleFx/GradleFx/issues/46) - full AIR/mobile support (only partially implemented, also see https://github.com/GradleFx/GradleFx/issues/25) Feel free to ask questions if you think we can be of assistance. Cheers, Max On Tue, Nov 20, 2012 at 9:11 AM, christofer.d...@c-ware.de < christofer.d...@c-ware.de> wrote: > Hi, > > As I mentioned in the "welcome" mail. My primary goal is to create a maven > plugin for compiling flex/air applications using maven. > Now in Flexmojos the compiler mojo is the biggest beast and also that > having to deal with all the legacy stuff. Therefore I didn't want > to be to "inspired" by the Flexmojos counterpart, and thought that someone > here on the list could eventually be really fit in how to > use the compiler(s) programmatically (Without whipping up the content of a > commandline call and executing that using exec). > > I know there seem to be multiple ways to remote control the compiler, > unfortunately I don't quite know which approach is best. > > So any input here greatly appreciated :) > > Chris > >