65 lines
4.8 KiB
XML
65 lines
4.8 KiB
XML
|
<project name="surefire-booter" 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="surefire-booter-1.5.3"/>
|
||
|
<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"/>
|
||
|
<path id="build.classpath">
|
||
|
<fileset dir="../lib">
|
||
|
<include name="junit.jar"/>
|
||
|
<include name="classworlds.jar"/>
|
||
|
<include name="surefire.jar"/>
|
||
|
<include name="plexus_utils.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}"/>
|
||
|
<javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
|
||
|
<src>
|
||
|
<pathelement location="src/main/java"/>
|
||
|
</src>
|
||
|
<classpath refid="build.classpath"/>
|
||
|
</javac>
|
||
|
</target>
|
||
|
<target name="jar" depends="compile" 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="/home/dbhole/DIST/maven-surefire/surefire-booter/junit/junit/3.8.1"/>
|
||
|
<get src="http://snapshots.maven.codehaus.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/classworlds/classworlds/1.1-alpha-2"/>
|
||
|
<get src="http://snapshots.maven.codehaus.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<get src="http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/org/apache/maven/surefire/surefire/1.5.2"/>
|
||
|
<get src="http://snapshots.maven.codehaus.org/maven2/org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.jar" dest="${maven.repo.local}/org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<get src="http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.jar" dest="${maven.repo.local}/org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/org/codehaus/plexus/plexus-utils/1.0.5"/>
|
||
|
<get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
<get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.jar" usetimestamp="true" ignoreerrors="true"/>
|
||
|
</target>
|
||
|
</project>
|