General Info
-
Description
A blank web-app.
-
Default Target
The default target is "compile": Compiles all the source code into class files.
Properties
-
build.dir
Location: build
Location of all intermediate files generated during the build.
Defined in root.
-
docs.dir
Location: docs
Location of all documentation, including static documents, as well as generated documents such as Javadocs.
Defined in root.
-
main.class
Value: com.example.Test
The class that will be run for a standalone test.
Defined in root.
Targets
-
build-app-properties
Description:
Copies build properties prefixed with "app-" to the app.properties file.
Dependencies:
none
<target name="build-app-properties" depends="init"> <echoproperties destfile="${temp.properties}"> <propertyset> <propertyref prefix="app."/> <mapper type="glob" from="app.*" to="*"/> </propertyset> </echoproperties> </target>
-
compile
Description:
Compiles all the source files into the build directory.
Dependencies:
<target name="compile" depends="init, build-app-properties" description="Compiles all the source files into the build directory."> <javac srcdir="${java.src.dir}" destdir="${class.dir}" debug="true" nowarn="true"> <classpath refid="build.classpath"/> </javac> <concat destfile="${class.dir}/app.properties" fixlastline="yes"> <header file="${etc.dir}/app.properties.header"/> <fileset file="${application.properties.file}"/> <fileset file="${temp.properties}"/> </concat> <delete file="${temp.properties}"/> </target>
-
init
Description:
Copies build properties prefixed with "app-" to the app.properties file.
Dependencies:
none
<target name="init"> <tstamp> <format pattern="yyyy-MM-dd'T'HH:mm:ss" property="build.time"/> <format pattern="yyyy-MM-dd_HH.mm.ss" property="file.time"/> </tstamp> <property name="test.property" value="some value"/> <mkdir dir="${build.dir}"/> <mkdir dir="${class.dir}"/> <mkdir dir="${dist.dir}"/> <mkdir dir="${test.dir}"/> </target>