Avg. Rating 4.0

Problem

You want to build a flex application using ant

Solution

Use flex ant task provided in the Adobe SDK and modify attached files.

Detailed explanation

Apache Ant is very useful tool for i.e. deploying your applications ( http://ant.apache.org/manual/index.html ) it might be also used for deploying flex applications, because Adobe provided FlexTasks in Flex SDK. To use ant first of all you should install it (link above). Then you might use attached files to build your own projects.

To create binaries of your new project with ant juest copy attached files to your project directory and modify build.properties file.

#set path to your flex SDK, i.e.
FLEX_HOME=C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.1.0
#set path to your project catalog, i.e.
flex.root=C:/flex/workspace/Cookbook

To run ant you might open command line and invoke in your project directory following command:

> ant

This will run main task in your build.xml file, which will build your project.

P.S.
In Windows systems path to your ant executable file should be placed in Path system variable. In other case you may invoke ant command by providing full path to ant executable file.

Flex Ant sample files.rar
[Files mentioned above]
Report abuse

Related recipes