</target>
- <target name="compile" depends="build-prepare">
+ <target name="compile" depends="build-prepare,download">
<!-- Compile internal server components -->
<javac srcdir="java" destdir="${tomcat.classes}"
<param name="destfile" value="${commons-dbcp.home}/build.xml" />
</antcall>
<mkdir dir="${tomcat-dbcp.home}"/>
+ <condition property="build.dbcp">
+ <not>
+ <available file="${tomcat-dbcp.jar}"/>
+ </not>
+ </condition>
<antcall target="build-tomcat-dbcp">
<param name="basedir" value="${tomcat-dbcp.home}" />
</antcall>
<param name="destdir" value="${base.path}"/>
</antcall>
<mkdir dir="${jasper-jdt.home}"/>
+ <condition property="build.jasper-jdt">
+ <not>
+ <available file="${jasper-jdt.jar}"/>
+ </not>
+ </condition>
<antcall target="build-jasper-jdt">
<param name="basedir" value="${jasper-jdt.home}" />
</antcall>
<!-- =============== Targets for dependencies that need to =============== -->
<!-- ================ be built rather than used directly ================ -->
- <target name="build-tomcat-dbcp" depends="build-manifests" >
+ <target name="build-tomcat-dbcp" depends="build-manifests" if="build.dbcp">
<copy todir="${tomcat-dbcp.home}">
<fileset dir="${commons-pool.home}">
<include name="**/*.java" />
filesId="files.tomcat-dbcp" />
</target>
- <target name="build-jasper-jdt" depends="build-manifests" >
+ <target name="build-jasper-jdt" depends="build-manifests"
+ if="build.jasper-jdt">
<unjar src="${jdt.jar}" dest="${jasper-jdt.home}" />
<jarIt jarfile="${jasper-jdt.jar}"
filesDir="${jasper-jdt.home}"