1 Reply Latest reply on Apr 4, 2012 12:47 PM by Mel Riffe

    Problem compiling the project without Flash Builder

    flexx0r

      Hi Flex People,

       

      I have a problem to compile the project without Flash Builder. I am trying to compile my application with ANT but I get this error here:

       

      main:

       

      en_US:
             [mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\flex-config.xml
             [mxmlc] Adobe Flex Compiler (mxmlc)
             [mxmlc] Version 4.5.1 build 21328
             [mxmlc] Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
             [mxmlc] command line: Error: unable to open 'locale/en_US'
             [mxmlc] Use 'mxmlc -help' for information about using the command line.

       

      BUILD FAILED

       

       

      My Compiler Arguments look like this:

       

      -locale=en_US,de_DE -source-path=locale/{locale}

       

       

      I have two languages inside my project..english and german. My build file looks like this:

       

      <project name="My App Builder" basedir=".">
          <taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar"/>
          <property name="FLEX_HOME" value="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1"/>
          <property name="APP_ROOT" value="C:\Users\cv\Adobe Flash Builder 4.5\App\src"/>
          <property name="DEPLOY_DIR" value="C:\Users\cv\Desktop\AntOutput"/>
         
          <target name="main">
              <antcall target="en_US"></antcall>
              <antcall target="de_DE"></antcall>
          </target>
         
          <target name="en_US">
              <mxmlc file="${APP_ROOT}/App.mxml"
                  output="${DEPLOY_DIR}/en_US.swf">
                  <locale>en_US</locale>
                  <source-path>locale/en_US</source-path>
                  <compiler.library-path dir="${FLEX_HOME}/frameworks/locale/en_US" append="false">
                  <include name="libs" />
                  </compiler.library-path>
                  <include-resource-bundles>messages,SharedResources,collections,containers,controls,core,e ffects,formatters,skins,styles</include-resource-bundles>
                  <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="${FLEX_HOME}/frameworks/libs/mx" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\4.5\libs" append="true">
                               <include name="*.swc" />
                   </library-path>             
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\dcradSwcs\3.6\libs" append="true">
                               <include name="*.swc" />
                   </library-path>    
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\libs\player\10.2" append="true">
                               <include name="*.swc" />
                   </library-path>
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\4.5\locale" append="true">
                               <include name="*.swc" />
                   </library-path>
              </mxmlc>
          </target>
         
          <target name="de_DE">
              <mxmlc file="${APP_ROOT}/App.mxml"
                  output="${DEPLOY_DIR}/de_DE.swf">
                  <locale>de_DE</locale>
                  <source-path>locale/de_DE</source-path>
                  <compiler.library-path dir="${FLEX_HOME}/frameworks/locale/de_DE" append="false">
                  <include name="libs" />
                  </compiler.library-path>
                  <include-resource-bundles>messages,SharedResources,collections,containers,controls,core,e ffects,formatters,skins,styles</include-resource-bundles>
                  <library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="${FLEX_HOME}/frameworks/libs/mx" append="true">
                          <include name="*.swc" />
                   </library-path>
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\4.5\libs" append="true">
                               <include name="*.swc" />
                   </library-path>             
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\dcradSwcs\3.6\libs" append="true">
                               <include name="*.swc" />
                   </library-path>    
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\libs\player\10.2" append="true">
                               <include name="*.swc" />
                   </library-path>
                   <library-path dir="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\4.5\locale" append="true">
                               <include name="*.swc" />
                   </library-path>
              </mxmlc>
          </target>   
      </project>

       

       

       

      has anyone an idea how I have to change my buildfile so that it works?

      Greetings flexx0r