Andrew Overholt e314446
<project name="plexus-resources" default="jar" basedir=".">
Andrew Overholt e314446
  <property file="${user.home}/.m2/maven.properties"/>
Andrew Overholt e314446
  <property name="maven.build.output" value="target/classes"/>
Andrew Overholt e314446
  <property name="maven.build.directory" value="target"/>
Andrew Overholt e314446
  <property name="maven.build.final.name" value="plexus-resources-1.0-alpha-4"/>
Andrew Overholt e314446
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
Andrew Overholt e314446
  <property name="maven.test.output" value="target/test-classes"/>
Andrew Overholt e314446
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
Andrew Overholt e314446
  <property name="javadocdir" value="target/site/apidocs"></property>
Andrew Overholt e314446
Andrew Overholt e314446
  <path id="build.classpath">
Andrew Overholt e314446
    <fileset dir="target/lib">
Andrew Overholt e314446
      <include name="plexus_utils.jar"/>
Andrew Overholt e314446
      <include name="plexus_container-default.jar"/>
Andrew Overholt e314446
      <include name="classworlds.jar"/>
Andrew Overholt e314446
    </fileset>
Andrew Overholt e314446
  </path>
Andrew Overholt e314446
  <target name="clean" description="Clean the output directory">
Andrew Overholt e314446
    <delete dir="${maven.build.directory}"/>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="compile" depends="get-deps" description="Compile the code">
Andrew Overholt e314446
    <mkdir dir="${maven.build.output}"/>
Andrew Overholt e314446
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
Andrew Overholt e314446
      <src>
Andrew Overholt e314446
        <pathelement location="src/main/java"/>
Andrew Overholt e314446
      </src>
Andrew Overholt e314446
      <classpath refid="build.classpath"/>
Andrew Overholt e314446
    </javac>
Andrew Overholt e314446
    <copy todir="${maven.build.output}">
Andrew Overholt e314446
      <fileset dir="src/main/resources"/>
Andrew Overholt e314446
    </copy>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="jar" depends="compile,test" description="Clean the JAR">
Andrew Overholt e314446
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
Andrew Overholt e314446
    <mkdir dir="${maven.test.output}"/>
Andrew Overholt e314446
    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
Andrew Overholt e314446
      <src>
Andrew Overholt e314446
        <pathelement location="src/test/java"/>
Andrew Overholt e314446
      </src>
Andrew Overholt e314446
      <classpath>
Andrew Overholt e314446
        <path refid="build.classpath"/>
Andrew Overholt e314446
        <pathelement location="${maven.build.output}"/>
Andrew Overholt e314446
      </classpath>
Andrew Overholt e314446
    </javac>
Andrew Overholt e314446
    <copy todir="${maven.test.output}">
Andrew Overholt e314446
      <fileset dir="src/test/resources"/>
Andrew Overholt e314446
    </copy>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
Andrew Overholt e314446
    <mkdir dir="${maven.test.reports}"/>
Andrew Overholt e314446
    <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
Andrew Overholt e314446
      <sysproperty key="basedir" value="."/>
Andrew Overholt e314446
      <formatter type="xml"/>
Andrew Overholt e314446
      <formatter type="plain" usefile="false"/>
Andrew Overholt e314446
      <classpath>
Andrew Overholt e314446
        <path refid="build.classpath"/>
Andrew Overholt e314446
        <pathelement location="${maven.build.output}"/>
Andrew Overholt e314446
        <pathelement location="${maven.test.output}"/>
Andrew Overholt e314446
      </classpath>
Andrew Overholt e314446
      <batchtest todir="${maven.test.reports}">
Andrew Overholt e314446
        <fileset dir="src/test/java">
Andrew Overholt e314446
          <include name="**/*Test.java"/>
Andrew Overholt e314446
          <exclude name="**/*Abstract*Test.java"/>
Andrew Overholt e314446
        </fileset>
Andrew Overholt e314446
      </batchtest>
Andrew Overholt e314446
    </junit>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="test-junit-present">
Andrew Overholt e314446
    <available classname="junit.framework.Test" property="junit.present"/>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
Andrew Overholt e314446
    <echo>================================= WARNING ================================</echo>
Andrew Overholt e314446
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
Andrew Overholt e314446
    <echo>==========================================================================</echo>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="test-offline">
Andrew Overholt e314446
    <condition property="maven.mode.offline">
Andrew Overholt e314446
      <equals arg1="${build.sysclasspath}" arg2="only"/>
Andrew Overholt e314446
    </condition>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
Andrew Overholt e314446
    <mkdir dir="${maven.repo.local}"/>
Andrew Overholt e314446
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/org/codehaus/plexus/plexus-utils/1.2"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/external_repo/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///usr/share/maven2/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/org/codehaus/plexus/plexus-container-default/1.0"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/external_repo/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///usr/share/maven2/repository/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/classworlds/classworlds/1.4"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/external_repo/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///var/home/jpp/rebuild/free/BUILD/plexus-resources-1.0-alpha-4/.m2/repository/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://snapshots.maven.codehaus.org/maven2/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="file:///usr/share/maven2/repository/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
    <get src="http://repo1.maven.org/maven2/classworlds/classworlds/1.4/classworlds-1.4.jar" dest="${maven.repo.local}/classworlds/classworlds/1.4/classworlds-1.4.jar" usetimestamp="true" ignoreerrors="true"/>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
Andrew Overholt e314446
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
Andrew Overholt e314446
    <mkdir dir="${javadocdir}"></mkdir>
Andrew Overholt e314446
    <tstamp>
Andrew Overholt e314446
      <format pattern="-yyyy" property="year"></format>
Andrew Overholt e314446
    </tstamp>
Andrew Overholt e314446
    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
Andrew Overholt e314446
    <property name="title" value="Plexus Resources Component 1.0-alpha-4 API"></property>
Andrew Overholt e314446
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.codehaus.plexus.resource.*">
Andrew Overholt e314446
      <classpath>
Andrew Overholt e314446
        <path refid="build.classpath"></path>
Andrew Overholt e314446
      </classpath>
Andrew Overholt e314446
    </javadoc>
Andrew Overholt e314446
  </target>
Andrew Overholt e314446
Andrew Overholt e314446
</project>