Alex Harui wrote
>>"Getting Started" suggest using Flex Builder, but that's a fair amount of
>>money to shell out for a hobby project. The results from "mxmlc -help"
>>aren't real informative.
> Use Ant.
>
> Try this article:
> http://www.adobe.com/devnet/flex/articles/flex_ant_pt1.html
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.