I use Ant and mxmlc to compile ActionScript and MXML classes in swfs, while preserving the default organization of the Flex Builder project (Flash Builder). Many of my ActionScript classes are in project subdirectories, so my project is organized as follows:
MyBigProject
-build-imports.xml
-build.xml
-bin-debug
--src
--test
-src
--flash
--build-imports.xml
--build.xml
--Main.mxml
-test
This directory structure supports the default directory structure for the Flash Builder project, so I can execute push buttons from the Flash Builder IDE. I added Ant build xml to this project so that I can also build from the command line. I am trying to create portable Ant build scripts that require minimal changes for reuse in other projects. I have everything I want, except to deduce relative paths.
build-imports.xml :
<project name="project.root.imports">
<dirname property="project.root.dir" file="${ant.file.project.root.imports}"/>
</project>
build-imports.xml :
<project name="MyBigProject.src.flash.app.imports">
<import file="../build-imports.xml" />
</project>
, sub project build-imports.xml hiearchy, -imports.xml, project.root.dir.
${project.root.dir}/bin-debug, , . , , - , , src. .
, , :
$ {Project.root.dir}/SRC/
, :
$ {Project.root.dir}/-/
Ant -contribu propertyregex, , , Ant, . , , Ant, .