-<!-- The "compile" target is used to compile (or recompile) the Java classes
- that make up this web application. The recommended source code directory
- structure makes this very easy because the <javac> task automatically
- works its way down a source code hierarchy and compiles any class that
- has not yet been compiled, or where the source file is newer than the
- class file.
-
- Feel free to adjust the compilation option parameters (debug,
- optimize, and deprecation) to suit your requirements. It is also
- possible to base them on properties, so that you can adjust this
- behavior at runtime.
-
- The "compile" task depends on the "prepare" task, so the deployment
- home directory structure will be created if needed the first time.
--->
-
- <target name="compile" depends="prepare">
- <!-- check to see if $TOMCAT_HOME was set to something useful.. -->
- <available file="${tomcat.home}/conf" property="tomcat.present"/>
- <antcall target="testtomcat"/>
-
- <!--<antcall target="clean"/>-->
- <dependset>
- <srcfileset
- dir="source"
- includes="**/*.java"/>
- <srcfileset
- dir="lib"
- includes="*.jar"/>
- <targetfileset
- dir="${deploy.classes}"
- includes="**/*.class"/>
- </dependset>
- <javac srcdir="source" destdir="${deploy.classes}"
- debug="on" optimize="off" deprecation="on">
- <classpath refid="project.class.path"/>
- </javac>
- <copy todir="${deploy.classes}">
- <fileset dir="source" includes="**/*.properties"/>
- </copy>
- <copy todir="${deploy.home}">
- <fileset dir="source" includes="**/content-types.properties"/>
- <!-- server.xml is currently not used
- <fileset dir="source" includes="**/server.xml"/>
- -->
- </copy>
- <copy todir="${deploy.classes}/bundles">
- <fileset dir="bundles" includes="**/*.properties"/>
- </copy>