If you've read Part 1 of this article, you probably have Ant installed already. For this article, you'll also need to download the new sample files. After you do, start up Flex Builder 3 and create a new Flex project called flex_ant_pt2_Tasks. Point it to the flex_ant_pt2_Tasks folder you downloaded and unzipped. Figure 1 shows the Flex project directory structure.

Figure 1: The flex_ant_pt2_Tasks directory structure.
You'll notice the same build.properties and build.xml files in the root of the application, as siblings of the "src" folder. Open the build.properties file by right clicking it and selecting Open With > Text Editor. It's the same file from Part 1, but with a few new variables.
# defines the Flex framework files location
FLEX_FRAMEWORK = ${FLEX_HOME}/frameworks/libs
# this property defines the doc directory, which will store your
# created # ASDocs later in the article
DOC_DIR =${basedir}/DOC
# defines the title for your ASDoc pages
DOC_TITLE ="Adobe Flex Ant Tasks"
# defines the footer for your ASDoc pages
DOC_FOOTER = "Copyright 2009 My Company"
# points to your asdoc.exe for ASDoc creation later. Make sure
the path
# is right according to your operating system
asdoc.exe =${FLEX_HOME}/bin/asdoc.exe
Starting
at line 15, you'll see the FLEX_FRAMEWORK, DOC_DIR, DOC_TITLE, DOC_FOOTER, and asdoc.exe variables defined in order.
FLEX_FRAMEWORK defines
the location of your Flex framework files. This will be used for the RSL
(run-time shared libraries) task later.
DOC_DIR is
a folder that the Ant script will create when it runs. This folder will hold
all the HTML files created from the ASDoc task.
The DOC_TITLE and DOC_FOOTER simply set the title and footer
values for the HTML pages created by the ASDoc tool. The remaining asdoc.exe variable
specifies the location of
the tool on the machine running the build script.