1 Reply Latest reply on Nov 27, 2007 3:39 AM by atta707

    build file

    leoalvesmachado
      Hi...

      How can I use a ANT script tu build my project? I already have the "build.xml" file, but I dont know how to use it in my project.

      I was trying to do it looking at project-properties-builders. I've created a new builder selecting the build.xml file that I have in the field location, and the other values I haven't changed. However I've got the following error:

      Errors during build.
      Errors running builder "Integrated External Tool Builder" on project my_project
      Exception occurred executing command line.
      CreateProcess: C:\workspace\my_project\flex\build.xml error 193


      I belive I might be doing something wrong. Could you help me find my mistake?

      thanks in advance
        • 1. Re: build file
          atta707 Level 2
          Here is a working example of the ANT script to build flex app. In you case it seems that you're missing the flex jar for ant specified in my script by:

          <taskdef resource="flexTasks.tasks" classpath="${ANT_HOME}/lib/flexTasks.jar" />


          <?xml version="1.0" encoding="utf-8"?>

          <project name="Builder" basedir="..">

          <taskdef resource="flexTasks.tasks" classpath="${ANT_HOME}/lib/flexTasks.jar" />

          <property name="FLEX_HOME" value="C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0"/>
          <property name="APP_ROOT" value="${basedir}"/>

          <target name="build">
          <mxmlc file="${APP_ROOT}\src\Analysis.mxml" debug="false"
          output="${APP_ROOT}/bin/no-debug/Analysis.swf"
          optimize="true"
          strict="true"
          warnings="false">

          <load-config filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
          <source-path path-element="${FLEX_HOME}\frameworks"/>

          <compiler.include-libraries dir="${APP_ROOT}/libs" append="true">
          <include name="corelib.swc" />
          </compiler.include-libraries>


          </mxmlc>
          </target>

          </project>

          ATTA