How can I use the same buildscript for Flash Builder 4 and Ant/Mvn?
I'm setting up a build system for a Flash Builder 4 (Flex 4) based project; and I'm st开发者_开发问答ruggling to get a setup that compiles in the IDE the same as it does from the command line on the build server.
I come from a C# background; and my expectation is that I'll be able to create a "solution" with a collection of "projects" that I can compile from the IDE, or from the command line on the build server.
The best I've managed sofar is 2 separate build "scripts", a custom ant script for the build server, and the default Flash Builder IDE config based on a workspace; but this is making my DRY daemons jump around in fury.
Please can someone point me in the right direction :)
If you use Maven and flex-mojos for your command line builds, then you can use the flexbuilder mojo to generate the Eclipse project files from your Maven build scripts. I'm sure there are some rough edges with the process, but at least it's DRY.
You might also check out IntelliJ IDEA. It can open the Maven project directly, and will create the Flex facets and configuration from the Maven build script. It will auto-detect when the pom.xml
file changes, and prompt for re-import (which is nice). You can enable auto-import, too. The down side is that it doesn't have the profiler or nice GUI editor that Flash Builder has.
精彩评论