|
|
</property> | </property> |
<property name="final.name" value="commons-fileupload-1.0"> | <property name="final.name" value="commons-fileupload-1.0"> |
</property> | </property> |
|
<property file="build.properties" /> |
|
<property name="classpath" value="${junit.jar}:${ant.jar}:${servletapi.jar}" /> |
<target name="init" description="o Initializes some properties"> | <target name="init" description="o Initializes some properties"> |
<mkdir dir="${libdir}"> | <mkdir dir="${libdir}"> |
</mkdir> | </mkdir> |
<condition property="noget"> |
|
<equals arg2="only" arg1="${build.sysclasspath}"> |
|
</equals> |
|
</condition> |
|
</target> | </target> |
<target name="compile" description="o Compile the code" depends="get-deps"> |
<target name="compile" description="o Compile the code"> |
<mkdir dir="${classesdir}"> | <mkdir dir="${classesdir}"> |
</mkdir> | </mkdir> |
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> | <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> |
|
|
</pathelement> | </pathelement> |
</src> | </src> |
<classpath> | <classpath> |
<fileset dir="${libdir}"> |
<pathelement path="${classpath}" /> |
<include name="*.jar"> |
|
</include> |
|
</fileset> |
|
</classpath> | </classpath> |
</javac> | </javac> |
</target> | </target> |
|
|
</fileset> | </fileset> |
</copy> | </copy> |
</target> | </target> |
|
<target name="dist-jar" description="o Create a JAR only distribution" depends="jar"> |
|
<mkdir dir="dist"> |
|
</mkdir> |
|
<copy todir="dist"> |
|
<fileset dir="${defaulttargetdir}" includes="*.jar"> |
|
</fileset> |
|
<fileset dir="${basedir}" includes="LICENSE*, README*"> |
|
</fileset> |
|
</copy> |
|
</target> |
<target name="test" description="o Run the test cases" if="test.failure" depends="internal-test"> | <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test"> |
<fail message="There were test failures."> | <fail message="There were test failures."> |
</fail> | </fail> |
|
|
<formatter usefile="false" type="plain"> | <formatter usefile="false" type="plain"> |
</formatter> | </formatter> |
<classpath> | <classpath> |
<fileset dir="${libdir}"> |
<pathelement path="${classpath}" /> |
<include name="*.jar"> |
|
</include> |
|
</fileset> |
|
<pathelement path="${testclassesdir}"> | <pathelement path="${testclassesdir}"> |
</pathelement> | </pathelement> |
<pathelement path="${classesdir}"> | <pathelement path="${classesdir}"> |
|
|
</pathelement> | </pathelement> |
</src> | </src> |
<classpath> | <classpath> |
<fileset dir="${libdir}"> |
<pathelement path="${classpath}" /> |
<include name="*.jar"> |
|
</include> |
|
</fileset> |
|
<pathelement path="${classesdir}"> | <pathelement path="${classesdir}"> |
</pathelement> | </pathelement> |
</classpath> | </classpath> |
|
|
</property> | </property> |
<javadoc bottom="Copyright &copy; 2002-2003 Apache Software Foundation. All Rights Reserved." windowtitle="FileUpload 1.0 API" use="true" private="true" destdir="${javadocdir}" author="true" doctitle="FileUpload 1.0 API" version="true" sourcepath="src/java" packagenames="org.apache.commons.fileupload.*"> | <javadoc bottom="Copyright &copy; 2002-2003 Apache Software Foundation. All Rights Reserved." windowtitle="FileUpload 1.0 API" use="true" private="true" destdir="${javadocdir}" author="true" doctitle="FileUpload 1.0 API" version="true" sourcepath="src/java" packagenames="org.apache.commons.fileupload.*"> |
<classpath> | <classpath> |
<fileset dir="${libdir}"> |
<pathelement path="${classpath}" /> |
<include name="*.jar"> |
|
</include> |
|
</fileset> |
|
<pathelement location="target/${final.name}.jar"> | <pathelement location="target/${final.name}.jar"> |
</pathelement> | </pathelement> |
</classpath> | </classpath> |
</javadoc> | </javadoc> |
</target> | </target> |
<target name="get-deps" unless="noget" depends="init"> |
</project> |
<get dest="${libdir}/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar"> |
|
</get> |
|
<get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"> |
|
</get> |
|
<get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"> |
|
</get> |
|
<get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar"> |
|
</get> |
|
<get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar"> |
|
</get> |
|
</target> |
|
<target name="install-maven"> |
|
<get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar"> |
|
</get> |
|
<unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"> |
|
</unjar> |
|
</target> |
|
</project> |
|