Ant will not pick up environment variables without doing something like:

    <property environment="env"/>
    <property name="FLEX_HOME" value="${env.FLEX_HOME}" />

You can test it by doing:

    <echo>FLEX_HOME is ${FLEX_HOME}</echo>


-Alex

On 2/16/14 11:15 PM, "bgoldnyxnet" <[email protected]> wrote:

>Alex Harui wrote
>> What does your taskdef look like?  It should be referencing
>>flexTasks.jar
>> as shown below.
>>>> 
>> <taskdef resource="flexTasks.tasks"
>>>
>>>   classpath="="${FLEX_HOME}/ant/lib/flexTasks.jar "/>
>
>That's exactly what it looks like. Again, here is my build.properties
>file:
># Directory path of Flex SDK
>FLEX_HOME=C:\barry\bin\flex\sdks\4.6.0
>
># Project source dir
>DEPLOY_DIR = "bin-debug"
>SRC_DIR = ${basedir}/src
>LIB_DIR = ${basedir}/libs
>DEPLOY_DIR = "${basedir}/bin-debug":
>projName = "GHen"
>mainFile = "GHen.mxml"
>
>and my build.xml:
>
>
>
>
><project name="GHen" default="compile">
>
>   
>   <property file="build.properties" />
>
>   
>   <taskdef resource="flexTasks.tasks"
>       classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
>
>   
>   <target name="init">
>      <delete dir="${DEPLOY_DIR}" />
>      <mkdir dir="${DEPLOY_DIR}" />
>   </target>
>
>   
>   <target name="compile" depends="init">
>      <mxmlc file="${SRC_DIR}/${mainFile}"
>output="${DEPLOY_DIR}/${projName}.swf
>">
>         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
>         <source-path path-element="${FLEX_HOME}/frameworks"/>
>         <compiler.debug>false</compiler.debug>
>      </mxmlc>
>   </target>
>
></project>
>
>
>> Also, if you subscribe to
>
>> [email protected]
>
>>  your posts will show up
>> without moderation much sooner.
>
>I have done so. I'm hoping that after this I'll be able to respond by
>email.
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/How-to-link-multiple-source
>-files-when-using-the-command-line-compiler-tp4974p4996.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to