0 Replies Latest reply on Jan 30, 2007 8:06 AM by blackshirt


    blackshirt Level 1
      I downloaded the Flextasks.jar from the labs site. I copied the .jar to my Ant/1.6.5/lib directory and rebooted my computer. Then I created the build.xml file below. I get the error "Command not found: mxmlc". At first I didnt think Ant understood the <mxmlc> tag but when I added some properties to the tag I received messages that the mxmlc tag didnt support this property.

      So I think the issue is that the mxmlc.exe compiler is not being found. Its installed at C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\ so I figured the "FLEX_ROOT" would help find this. If anyone could offer suggestions I would appreciate it.

      <project name="My App Builder" default='main'>
      <taskdef resource="flexTasks.tasks" classpath="C:/Ant/RouteAware/lib/flexTasks.jar"/>
      <property name="FLEX_ROOT" value="C:/Program Files/Adobe/Flex Builder 2/Flex SDK 2"/>
      <property name="FLEX_HOME" value="C:/Program Files/Adobe/Flex Builder 2/Flex SDK 2/frameworks/flex-config.xml"/>
      <property name="APP_ROOT" value="."/>
      <target name="main">
      <mxmlc file="${APP_ROOT}/HelloWorld.mxml"
      <load-config filename="${FLEX_ROOT}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_ROOT}/frameworks"/>