0 Replies Latest reply on Dec 4, 2008 1:58 AM by chandanmahajan

    Compiling multiple mxml files using ant script

      Hi All,

      I am using ant script to compile mxml files. I could write the script to compile single mxml file. However, I need to compile all the mxml file under one directory. I do not find any way to do it. If any body has any idea or worked on it, please let us know.

      Following is the ant script which we are using to compile single mxml file.

      <?xml version="1.0" encoding="utf-8"?>
      <project name="My App Builder" basedir=".">
      <taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar"/>
      <property name="FLEX_HOME" value="D:\Program Files\Adobe\Flex Builder 3\sdks\3.1.0"/>
      <property name="APP_ROOT" value="src"/>
      <property name="DEPLOY_DIR" value="D:\output"/>
      <target name="main">
      <mxmlc dir="${APP_ROOT}/mychart/bar.mxml" >
      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_HOME}/frameworks"/>

      Note: I have copied flextasks.jar in the lib directory of the ant.

      I need to compile all the mxml files which are present under mychart directory.
      Awaiting for your kind response. This is really an urgent requirement so early response will be really appricated.

      Let me know if you need more information on this.

      Thanks & Regards,