>Okay, I copied the build.xml file from the article you cited and modified it
>for my project.
>After typing "ant", I got the following error message:
Build flex projects with ant requires additional ant tasks.
These are in flexTasks.jar which is located in
<FLEX_HOME>/ant/lib/flexTasks.jar.
the build file statement below is looking for flexTask in a different location.
<taskdef resource="flexTasks.tasks"
classpath="${basedir}/libs/flexTasks.jar"/>
So you should change it to:
<taskdef resource="flexTasks.tasks"
classpath="="${FLEX_HOME}/ant/lib/flexTasks.jar "/>
Maurice
-------------------------
Okay, I copied the build.xml file from the article you cited and modified it
for my project.
After typing "ant", I got the following error message:
Buildfile: C:\dn\inprogress\GH\flex\GHEn\build.xml
[taskdef] Could not load definitions from resource flexTasks.tasks. It could
not be found.
init:
BUILD FAILED
C:\dn\inprogress\GH\flex\GHen\build.xml:16: Directory
C:\dn\inprogress\GH\flex\GHen\"C:\dn\inprogress\GH\flex\GHen\
bin-debug": creation was not successful for an unknown reason
Here is my build.xml file:
<project name="GHen" default="compile">
<property file="build.properties" />
<taskdef resource="flexTasks.tasks"
classpath="${basedir}/libs/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>
======================================
And my build.properties file:
# Directory path of Flex SDK
FLEX_HOME=C:\barry\bin\flex\sdks\4.6.0\bin
# 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"
--
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-tp4974p4985.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.