<project name="xmlrpc" default="jar" basedir="."> <property file="${user.home}/.m2/maven.properties"/> <property name="maven.build.output" value="target/classes"/> <property name="maven.build.directory" value="target"/> <property name="maven.build.final.name" value="xmlrpc-3.1"/> <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/> <property name="maven.test.output" value="target/test-classes"/> <property name="maven.repo.local" value="${user.home}/.m2/repository"/> <property name="javadocdir" value="target/site/apidocs"></property> <path id="build.classpath"> <fileset dir="${maven.repo.local}"> <include name="org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar"/> <include name="xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar"/> </fileset> </path> <target name="clean" description="Clean the output directory"> <delete dir="${maven.build.directory}"/> </target> <target name="compile" depends="get-deps" description="Compile the code"> <mkdir dir="${maven.build.output}"/> </target> <target name="jar" depends="compile,test" description="Clean the JAR"> <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/> </target> <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present"> <mkdir dir="${maven.test.output}"/> </target> <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/> <target name="test-junit-present"> <available classname="junit.framework.Test" property="junit.present"/> </target> <target name="junit-present" depends="test-junit-present" unless="junit.present"> <echo>================================= WARNING ================================</echo> <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo> <echo>==========================================================================</echo> </target> <target name="test-offline"> <condition property="maven.mode.offline"> <equals arg1="${build.sysclasspath}" arg2="only"/> </condition> </target> <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline"> <mkdir dir="${maven.repo.local}"/> <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/org/apache/ws/commons/ws-commons-java5/1.0.1"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///usr/share/maven2/repository/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <get src="http://repo1.maven.org/maven2/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" dest="${maven.repo.local}/org/apache/ws/commons/ws-commons-java5/1.0.1/ws-commons-java5-1.0.1.jar" usetimestamp="true" ignoreerrors="true"/> <mkdir dir="/var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/xml-apis/xml-apis/2.0.2"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/external_repo/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///var/home/jpp/rebuild/free/BUILD/xmlrpc-3.1/.m2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> <get src="http://svn.apache.org/maven-snapshot-repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> <get src="file:///usr/share/maven2/repository/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" dest="${maven.repo.local}/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.jar" usetimestamp="true" ignoreerrors="true"/> </target> </project>