<fileset dir="lib">
<include name="*.jar"/>
</fileset>
+
+ <pathelement path="${tomcat.home}/lib/tomcat.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.x.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>
+ <!-- for libs shared between webapps (tomcat 4.1.x) -->
+ <fileset dir="${tomcat.home}">
+ <include name="shared/lib/*.jar" />
+ </fileset>
+ <fileset dir="${tomcat.home}">
+ <include name="common/endorsed/*.jar" />
+ </fileset>
</path>
<target name="prepare">
</copy>
<copy todir="${deploy.home}/WEB-INF/lib">
- <fileset dir="lib">
- <exclude name="ant.jar"/>
- <exclude name="xerces.jar"/>
- </fileset>
+ <fileset dir="lib" />
</copy>
</target>
<target name="mrproper">
<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>
<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"/>
<dependset>
- <srcfileset
- dir="source"
- includes="**/*.java"/>
+ <srcfileset dir="source" includes="**/*.java"/>
+ <srcfileset dir="lib" includes="*.jar"/>
+ <targetfileset dir="${deploy.classes}" includes="**/*.class"/>
<!-- ML: now why can't this be added?
- <srcfileset
- dir="etc/extrasource"
- includes="**/*.java"/> -->
- <srcfileset
- dir="lib"
- includes="*.jar"/>
- <targetfileset
- dir="${deploy.classes}"
- includes="**/*.class"/>
+ <srcfileset dir="etc/extrasource" includes="**/*.java"/> -->
</dependset>
<javac destdir="${deploy.classes}"
debug="${compile.debug}" optimize="${compile.optimize}" deprecation="on">
</javac>
</target>
- <target name="perms">
- <exec executable="./perms.sh"/>
- </target>
-
<target name="javadoc" depends="prepare">
<javadoc packagenames="mir.*, mircoders.*"
sourcefiles="source/Mir.java,source/OpenMir.java"