flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: How to link multiple source files when using the command-line compiler?
Date Sat, 15 Feb 2014 13:28:17 GMT
>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"

So you should change it to:

   <taskdef resource="flexTasks.tasks"  classpath="="${FLEX_HOME}/ant/lib/flexTasks.jar


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.
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"

   <target name="init">
      <delete dir="${DEPLOY_DIR}" />
      <mkdir dir="${DEPLOY_DIR}" />

   <target name="compile" depends="init">
      <mxmlc file="${SRC_DIR}/${mainFile}"
         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
         <source-path path-element="${FLEX_HOME}/frameworks"/>



And my build.properties file:

# Directory path of Flex SDK

# 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.

View raw message