![Free-eBooks.net](/resources/img/logo-nfe.png)
![All New Design](/resources/img/allnew.png)
Listing 20.18 shows the application project build file; you'll notice that it is very similar to the model project build file. It is divided into the same targets: init, clean, delete, prepare, mkdir, compile, package, and all. The application project build file defines the properties differently, but even the property names are almost identical (compare with the model project build file in Listing 20.17).
<project name="application" default="all" ><target name="init" description="initialize the properties."> <property name="local_outdir" value="${outdir}/java_app" /> <property name="build" value="${local_outdir}/classes" /> <property name="lib" value="${outdir}/lib" />
<property name="app_jar" value="${lib}/greetapp.jar" />
<target name="prepare" depends="init"
description="prepare the output directory."> <mkdir dir="${build}" />
<mkdir dir="${lib}" />
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>