<property name="app.name" value="Mir"/>
<property name="deploy.home" value="../${app.name}"/>
+ <!-- If you want to use the very good jikes compiler, uncomment this -->
+ <!-- <property name="build.compiler" value="jikes"/>-->
+
<!-- No customization required after this line -->
<property name="javadoc.home" value="${deploy.home}/javadoc"/>
<property name="tomcat.home" value="${env.TOMCAT_HOME}"/>
- <!-- If you want to use the very good jikes compiler, uncomment this
- <property name="build.compiler" value="jikes"/> -->
-
<!-- Construct the classpath -->
<include name="*.jar"/>
</fileset>
<pathelement path="${tomcat.home}/lib/tomcat.jar"/>
- <fileset dir="${tomcat.home}/lib/common">
- <include name="*.jar" />
+ <!-- for libs shared between tomcat and webapps (tomcat 3.3.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="lib/common/*.jar" />
+ </fileset>
+ <!-- for libs shared between webapps (tomcat 3.3.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="lib/apps/*.jar" />
+ </fileset>
+ <!-- for libs shared between tomcat and webapps (tomcat 4.0.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="common/lib/*.jar" />
+ </fileset>
+ <!-- for libs shared between webapps (tomcat 4.0.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="lib/*.jar" />
</fileset>
</path>
<delete dir="${deploy.home}"/>
</target>
-
+ <!-- drop out if $TOMCAT_HOME is not set>-->
+ <target name="testtomcat" unless="tomcat.present">
+ <fail message="the $$TOMCAT_HOME environment variable is not set or is set to the wrong path. Please set it first. giving up!"/>
+ </target>
<!-- The "compile" target is used to compile (or recompile) the Java classes
that make up this web application. The recommended source code directory
-->
<target name="compile" depends="prepare">
- <antcall target="clean"/>
+ <!-- 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>
+ </javac>
<copy todir="${deploy.classes}">
<fileset dir="source" includes="**/*.properties"/>
</copy>