1 Reply Latest reply on Feb 28, 2008 9:33 AM by Gaurav J

    Migrating to use new mxmlc task -- doesn't work

    Paul J. Lucas Level 1
      I had been doing:

      <java jar="${MXMLC.JAR}" fork="true" failonerror="true">
      <arg value="-debug=${debug}"/>
      <arg value="+configname=air"/>
      <arg value="+flexlib=${FLEX_HOME}/frameworks"/>
      <arg value="-file-specs=${APP_MXML_FILE}"/>
      <arg value="-compiler.include-libraries=${APP_ROOT_DIR}/libs/Degrafa.swc"/>
      <arg value="-output=${output-dir}/${APP_SWF_FILE}"/>
      </java>

      Now I'm trying to do:

      <mxmlc configname="air" debug="${debug}"
      file="${APP_MXML_FILE}" output="${output-dir}/${APP_SWF_FILE}">
      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_HOME}/frameworks"/>
      <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
      <include name="libs"/>
      </compiler.library-path>
      <compiler.external-library-path dir="${APP_ROOT_DIR}/libs">
      <include name="Degrafa.swc"/>
      </compiler.external-library-path>
      </mxmlc>

      The former works; the latter generates:

      Error: Unable to locate specified base class 'mx.core.WindowedApplication'

      Why?

      - Paul