Trouble with FLEX_HOME environment in OS X


hi. try run ant script. in command line it's work fine, in flashbuilder doesn't work.

 

i put line in .zshrc file

export flex_home=/applications/adobe\ flash\ builder\ 4.7/sdks/4.6.0/ 

 

build.xml file:

<?xml version="1.0"?> <project name="helloworld" basedir="../" default="compile">   <!-- set prefix environment variables -->   <property environment="env" />           <fail unless="env.flex_home" message="flex_home needs defined environment variable or in ant build." />   <!-- load user properties overrride defaults -->   <property file="${basedir}/build/build.properties" />   <!-- system environment must contain flex_home variable points flex sdk -->   <property name="flex_home" location="${env.flex_home}" />   <!-- set flex tasks in ant -->   <taskdef resource="flextasks.tasks" classpath="${flex_home}/ant/lib/flextasks.jar" />    <!-- create directories needed build process -->   <target name="init" description="initializes project , destination folders.">   <echo message="project: ${ant.project.name}" />   <echo message="flex sdk: ${flex_home}" />   <echo message="flex home ${env.flex_home}" />   <mkdir dir="${bin.dir}" />   </target>    <target name="compile" depends="init" description="compiles application.">   <mxmlc file="${src.dir}/${application.name}.as" output="${bin.dir}/${application.name}.swf">   <load-config filename="${flex_home}/frameworks/flex-config.xml" />    <source-path path-element="${src.dir}" />    </mxmlc>     <echo message="the ${application.name}.swf has been created in ${bin.dir}" />   </target>  </project> 



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support