0 Replies Latest reply on Jul 11, 2008 4:04 AM by elmonigotedelaisla

    Compiling with ant.

    elmonigotedelaisla
      Hello all,

      I wonder why I´m having always this error:

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

      when i compile my application via ant by using an exec task:

      <exec executable="${flex.mxmlc}" failonerror="true">
      <arg line="${src.dir}/Matsplayer.mxml" />
      <arg line="-output ${bin.dir}/${locale}/Matsplayer.swf" />
      <arg line="-actionscript-file-encoding UTF-8" />
      <arg line="-locale ${locale}"/>
      <arg line="-allow-source-path-overlap=true"/>
      <arg line="-library-path ${FLEX_HOME}/frameworks/${locale.dir}/
      {locale}" />
      </exec>

      In the other hand, If i use mxmlc task, the app compiles correctly:

      <mxmlc file="${src.dir}/matsplayer.mxml"
      output="${bin.dir}/${locale}/Matsplayer.swf"
      actionscript-file-encoding="UTF-8"
      locale="${locale}"
      allow-source-path-overlap="true"
      keep-generated-actionscript="true">
      <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
      <include name="${locale.dir}/{locale}" />
      </compiler.library-path>
      <default-size width="1024" height="768" />
      </mxmlc>

      The problem is that I have to use a exec task, since I will have to
      add some RSL dynamically, and the directive -runtime-shared-libraries
      is not implemented for mxmlc task, so I will make it via exec from a
      custom ant task.

      Any idea???

      TIA.