ad5da3a
<project name="surefire-booter" default="jar" basedir=".">
ad5da3a
  <property file="${user.home}/.m2/maven.properties"/>
ad5da3a
  <property name="maven.build.output" value="target/classes"/>
ad5da3a
  <property name="maven.build.directory" value="target"/>
ad5da3a
  <property name="maven.build.final.name" value="surefire-booter-1.5.3"/>
ad5da3a
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
ad5da3a
  <property name="maven.test.output" value="target/test-classes"/>
ad5da3a
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
ad5da3a
  <path id="build.classpath">
ad5da3a
    <fileset dir="../lib">
ad5da3a
      <include name="junit.jar"/>
ad5da3a
      <include name="classworlds.jar"/>
ad5da3a
      <include name="surefire.jar"/>
ad5da3a
      <include name="plexus_utils.jar"/>
ad5da3a
    </fileset>
ad5da3a
  </path>
ad5da3a
  <target name="clean" description="Clean the output directory">
ad5da3a
    <delete dir="${maven.build.directory}"/>
ad5da3a
  </target>
ad5da3a
  <target name="compile" depends="get-deps" description="Compile the code">
ad5da3a
    <mkdir dir="${maven.build.output}"/>
ad5da3a
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
ad5da3a
      <src>
ad5da3a
        <pathelement location="src/main/java"/>
ad5da3a
      </src>
ad5da3a
      <classpath refid="build.classpath"/>
ad5da3a
    </javac>
ad5da3a
  </target>
ad5da3a
  <target name="jar" depends="compile" description="Clean the JAR">
ad5da3a
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
ad5da3a
  </target>
ad5da3a
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
ad5da3a
    <mkdir dir="${maven.test.output}"/>
ad5da3a
  </target>
ad5da3a
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases"/>
ad5da3a
  <target name="test-junit-present">
ad5da3a
    <available classname="junit.framework.Test" property="junit.present"/>
ad5da3a
  </target>
ad5da3a
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
ad5da3a
    <echo>================================= WARNING ================================</echo>
ad5da3a
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
ad5da3a
    <echo>==========================================================================</echo>
ad5da3a
  </target>
ad5da3a
  <target name="test-offline">
ad5da3a
    <condition property="maven.mode.offline">
ad5da3a
      <equals arg1="${build.sysclasspath}" arg2="only"/>
ad5da3a
    </condition>
ad5da3a
  </target>
ad5da3a
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
ad5da3a
    <mkdir dir="${maven.repo.local}"/>
ad5da3a
    <mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/junit/junit/3.8.1"/>
ad5da3a
    <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"/>
ad5da3a
    <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"/>
ad5da3a
    <mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/classworlds/classworlds/1.1-alpha-2"/>
ad5da3a
    <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"/>
ad5da3a
    <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"/>
ad5da3a
    <mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/org/apache/maven/surefire/surefire/1.5.2"/>
ad5da3a
    <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"/>
ad5da3a
    <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"/>
ad5da3a
    <mkdir dir="/home/dbhole/DIST/maven-surefire/surefire-booter/org/codehaus/plexus/plexus-utils/1.0.5"/>
ad5da3a
    <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"/>
ad5da3a
    <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"/>
ad5da3a
  </target>
ad5da3a
</project>