185314d
<project name="wagon-webdav" default="jar" basedir=".">
185314d
  <property file="${user.home}/.m2/maven.properties"/>
185314d
  <property name="maven.build.output" value="target/classes"/>
185314d
  <property name="maven.build.directory" value="target"/>
185314d
  <property name="maven.build.final.name" value="wagon-webdav-1.0-beta-2"/>
185314d
  <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
185314d
  <property name="maven.test.output" value="target/test-classes"/>
185314d
  <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
185314d
  <path id="build.classpath">
185314d
    <fileset dir="${maven.repo.local}">
185314d
      <include name="org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.jar"/>
185314d
      <include name="slide/slide-webdavlib/1/slide-webdavlib-1.jar"/>
185314d
      <include name="servletapi/servletapi/2.4/servletapi-2.4.jar"/>
185314d
      <include name="commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
185314d
      <include name="jetty/jetty/5.1.11/jetty-5.1.11.jar"/>
185314d
      <include name="commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar"/>
185314d
      <include name="org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar"/>
185314d
    </fileset>
185314d
  </path>
185314d
  <target name="clean" description="Clean the output directory">
185314d
    <delete dir="${maven.build.directory}"/>
185314d
  </target>
185314d
  <target name="compile" depends="get-deps" description="Compile the code">
185314d
    <mkdir dir="${maven.build.output}"/>
185314d
    <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
185314d
      <src>
185314d
        <pathelement location="src/main/java"/>
185314d
      </src>
185314d
      <classpath refid="build.classpath"/>
185314d
    </javac>
185314d
    <copy todir="${maven.build.output}">
185314d
      <fileset dir="src/main/resources"/>
185314d
    </copy>
185314d
  </target>
185314d
  <target name="jar" depends="compile,test" description="Clean the JAR">
185314d
    <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
185314d
  </target>
185314d
  <target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
185314d
    <mkdir dir="${maven.test.output}"/>
185314d
    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
185314d
      <src>
185314d
        <pathelement location="src/test/java"/>
185314d
      </src>
185314d
      <classpath>
185314d
        <path refid="build.classpath"/>
185314d
        <pathelement location="${maven.build.output}"/>
185314d
      </classpath>
185314d
    </javac>
185314d
    <copy todir="${maven.test.output}">
185314d
      <fileset dir="src/test/resources"/>
185314d
    </copy>
185314d
  </target>
185314d
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
185314d
    <mkdir dir="${maven.test.reports}"/>
185314d
    <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
185314d
      <sysproperty key="basedir" value="."/>
185314d
      <formatter type="xml"/>
185314d
      <formatter type="plain" usefile="false"/>
185314d
      <classpath>
185314d
        <path refid="build.classpath"/>
185314d
        <pathelement location="${maven.build.output}"/>
185314d
        <pathelement location="${maven.test.output}"/>
185314d
      </classpath>
185314d
      <batchtest todir="${maven.test.reports}">
185314d
        <fileset dir="src/test/java">
185314d
          <include name="**/*Test.java"/>
185314d
          <exclude name="**/*Abstract*Test.java"/>
185314d
        </fileset>
185314d
      </batchtest>
185314d
    </junit>
185314d
  </target>
185314d
  <target name="test-junit-present">
185314d
    <available classname="junit.framework.Test" property="junit.present"/>
185314d
  </target>
185314d
  <target name="junit-present" depends="test-junit-present" unless="junit.present">
185314d
    <echo>================================= WARNING ================================</echo>
185314d
    <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
185314d
    <echo>==========================================================================</echo>
185314d
  </target>
185314d
  <target name="test-offline">
185314d
    <condition property="maven.mode.offline">
185314d
      <equals arg1="${build.sysclasspath}" arg2="only"/>
185314d
    </condition>
185314d
  </target>
185314d
  <target name="get-deps" depends="test-offline" description="Download all dependencies" unless="maven.mode.offline">
185314d
    <mkdir dir="${maven.repo.local}"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/org/codehaus/plexus/plexus-utils/1.2"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-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"/>
185314d
    <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"/>
185314d
    <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"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/slide/slide-webdavlib/1"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/slide/slide-webdavlib/1/slide-webdavlib-1.jar" dest="${maven.repo.local}/slide/slide-webdavlib/1/slide-webdavlib-1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/slide/slide-webdavlib/1/slide-webdavlib-1.jar" dest="${maven.repo.local}/slide/slide-webdavlib/1/slide-webdavlib-1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/slide/slide-webdavlib/1/slide-webdavlib-1.jar" dest="${maven.repo.local}/slide/slide-webdavlib/1/slide-webdavlib-1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/servletapi/servletapi/2.4"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/servletapi/servletapi/2.4/servletapi-2.4.jar" dest="${maven.repo.local}/servletapi/servletapi/2.4/servletapi-2.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/servletapi/servletapi/2.4/servletapi-2.4.jar" dest="${maven.repo.local}/servletapi/servletapi/2.4/servletapi-2.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/servletapi/servletapi/2.4/servletapi-2.4.jar" dest="${maven.repo.local}/servletapi/servletapi/2.4/servletapi-2.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/commons-logging/commons-logging/1.0.4"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" dest="${maven.repo.local}/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/jetty/jetty/5.1.11"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/jetty/jetty/5.1.11/jetty-5.1.11.jar" dest="${maven.repo.local}/jetty/jetty/5.1.11/jetty-5.1.11.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/jetty/jetty/5.1.11/jetty-5.1.11.jar" dest="${maven.repo.local}/jetty/jetty/5.1.11/jetty-5.1.11.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/jetty/jetty/5.1.11/jetty-5.1.11.jar" dest="${maven.repo.local}/jetty/jetty/5.1.11/jetty-5.1.11.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/commons-httpclient/commons-httpclient/3.0.1"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" dest="${maven.repo.local}/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" dest="${maven.repo.local}/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" dest="${maven.repo.local}/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <mkdir dir="/var/home/jpp/rebuild/free/BUILD/wagon-1.0-beta-2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6"/>
185314d
    <get src="http://svn.apache.org/maven-snapshot-repository/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" dest="${maven.repo.local}/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="file:///usr/share/maven2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" dest="${maven.repo.local}/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
    <get src="http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" dest="${maven.repo.local}/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.jar" usetimestamp="true" ignoreerrors="true"/>
185314d
  </target>
185314d
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
185314d
    <mkdir dir="target/site/apidocs">
185314d
    </mkdir>
185314d
    <tstamp>
185314d
      <format pattern="2002-yyyy" property="year">
185314d
      </format>
185314d
    </tstamp>
185314d
    <property name="copyright" value="Copyright &copy;  Apache Software Foundation. All Rights Reserved.">
185314d
    </property>
185314d
    <property name="title" value="Maven Wagon WebDAV Provider 1.0 API">
185314d
    </property>
185314d
    <javadoc use="true" private="true" destdir="target/site/apidocs" author="true" version="true" sourcepath="src/main/java" packagenames="org.apache.maven.wagon.*">
185314d
      <classpath>
185314d
        <path refid="build.classpath">
185314d
        </path>
185314d
      </classpath>
185314d
    </javadoc>
185314d
  </target>
185314d
</project>