- <target name="compile" depends="prepare">
- <antcall target="clean"/>
- <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"/>
- <fileset dir="source" includes="**/server.xml"/>
- </copy>
- <copy todir="${deploy.classes}/bundles">
- <fileset dir="bundles" includes="**/*.properties"/>
- </copy>
- <!-- I really don't think this is needed by default. maybe make it a targe?
- -mh -->
- <!--<exec executable="./perms.sh"/>-->
- </target>
-
-
-<!-- The "javadoc" target is used to create the Javadoc API documentation
- for the Java classes in this web application. It is assumed that
- this documentation is included in the deployed application, so the
- example below generates the Javadoc HTML files in a subdirectory under
- the deployment home directory. Feel free to customize the options for
- the JavaDoc task, after consulting the Ant documentation.
--->
-
- <target name="javadoc" depends="prepare">
- <javadoc packagenames="mir.*, mircoders.*"
- sourcefiles="source/${app.name}.java,source/Open${app.name}.java"
- sourcepath="source"
- destdir="${javadoc.home}">
- <classpath refid="project.class.path"/>
- </javadoc>
- </target>
-
-
-<!-- The "all" target rebuilds everything by executing the "clean"
- target first, which forces the "compile" target to compile all
- source code instead of just the files that have been changed.
--->
-
- <target name="all" depends="clean,prepare,compile,javadoc"/>
-
-
-<!-- The "dist" target builds the distribution Web ARchive (WAR) file
- for this application, suitable for distribution to sites that wish
- to install your application. It also creates a JAR file containing
- the source code for this application, if you wish to distribute
- that separately.
--->
- <target name="dist" depends="prepare,compile">
- <jar jarfile="${dist.home}/mirbase.jar"
- includes="mir/**"
- basedir="${deploy.classes}"/>
- <jar jarfile="${dist.home}/${dist.src}"
- basedir="./source"/>
- <jar jarfile="${dist.home}/${dist.war}"
- basedir="${deploy.home}"
- excludes="${dist.war}"/>