LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plexus-naming-1.0-build.xml of Package plexus-naming (Project home:vlj:fedora14:maven2)

<project name="plexus-naming" 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="plexus-naming-1.0-alpha-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"/>
  <property name="javadocdir" value="target/site/apidocs"></property>
  <path id="build.classpath">
    <fileset dir="${maven.repo.local}">
      <include name="org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar"/>
      <include name="org/codehaus/plexus/plexus-container-default/1.0/plexus-container-default-1.0.jar"/>
      <include name="directory-naming/naming-java/0.8/naming-java-0.8.jar"/>
      <include name="commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar"/>
      <include name="directory-naming/naming-config/0.8/naming-config-0.8.jar"/>
      <include name="classworlds/classworlds/1.1/classworlds-1.1.jar"/>
      <include name="directory-naming/naming-core/0.8/naming-core-0.8.jar"/>
      <include name="commons-pool/commons-pool/1.2/commons-pool-1.2.jar"/>
      <include name="directory-naming/naming-factory/0.8/naming-factory-0.8.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,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}"/>
    <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
      <src>
        <pathelement location="src/test/java"/>
      </src>
      <classpath>
        <path refid="build.classpath"/>
        <pathelement location="${maven.build.output}"/>
      </classpath>
    </javac>
    <copy todir="${maven.test.output}">
      <fileset dir="src/test/resources"/>
    </copy>
  </target>
  <target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
    <mkdir dir="${maven.test.reports}"/>
    <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
      <sysproperty key="basedir" value="."/>
      <formatter type="xml"/>
      <formatter type="plain" usefile="false"/>
      <classpath>
        <path refid="build.classpath"/>
        <pathelement location="${maven.build.output}"/>
        <pathelement location="${maven.test.output}"/>
      </classpath>
      <batchtest todir="${maven.test.reports}">
        <fileset dir="src/test/java">
          <include name="**/*Test.java"/>
          <exclude name="**/*Abstract*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>
  <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&apos;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="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/org/codehaus/plexus/plexus-utils/1.4.5"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" dest="${maven.repo.local}/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/org/codehaus/plexus/plexus-container-default/1.0"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.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"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/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"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.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"/>
    <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"/>
    <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"/>
    <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"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/directory-naming/naming-java/0.8"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/directory-naming/naming-java/0.8/naming-java-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-java/0.8/naming-java-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/commons-dbcp/commons-dbcp/1.2.2"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" dest="${maven.repo.local}/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/directory-naming/naming-config/0.8"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/directory-naming/naming-config/0.8/naming-config-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-config/0.8/naming-config-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/classworlds/classworlds/1.1"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/classworlds/classworlds/1.1/classworlds-1.1.jar" dest="${maven.repo.local}/classworlds/classworlds/1.1/classworlds-1.1.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/directory-naming/naming-core/0.8"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/directory-naming/naming-core/0.8/naming-core-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-core/0.8/naming-core-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/commons-pool/commons-pool/1.2"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" dest="${maven.repo.local}/commons-pool/commons-pool/1.2/commons-pool-1.2.jar" usetimestamp="true" ignoreerrors="true"/>
    <mkdir dir="/usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/directory-naming/naming-factory/0.8"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/external_repo/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/local/jpp/rebuild/devel/BUILD/plexus-naming-1.0-alpha-3/.m2/repository/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://snapshots.maven.codehaus.org/maven2/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="file:///usr/share/maven2/repository/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" dest="${maven.repo.local}/directory-naming/naming-factory/0.8/naming-factory-0.8.jar" usetimestamp="true" ignoreerrors="true"/>
  </target>
  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
    <mkdir dir="${javadocdir}"></mkdir>
    <tstamp>
      <format pattern="-yyyy" property="year"></format>
    </tstamp>
    <property name="copyright" value="Copyright &amp;copy;  . All Rights Reserved."></property>
    <property name="title" value="Plexus Naming Component 1.0 API"></property>
    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main/java" packagenames="org.codehaus.plexus.naming.*">
      <classpath>
        <path refid="build.classpath"></path>
      </classpath>
    </javadoc>
  </target>
</project>