You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by sg...@apache.org on 2008/04/07 14:25:49 UTC

svn commit: r645478 - /commons/sandbox/exec/trunk/build.xml

Author: sgoeschl
Date: Mon Apr  7 05:25:48 2008
New Revision: 645478

URL: http://svn.apache.org/viewvc?rev=645478&view=rev
Log:
Improving building the test distro

Modified:
    commons/sandbox/exec/trunk/build.xml

Modified: commons/sandbox/exec/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/build.xml?rev=645478&r1=645477&r2=645478&view=diff
==============================================================================
--- commons/sandbox/exec/trunk/build.xml (original)
+++ commons/sandbox/exec/trunk/build.xml Mon Apr  7 05:25:48 2008
@@ -43,7 +43,7 @@
     <mkdir dir="${maven.build.output}"/>
     <javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false" target="1.3">
       <src>
-        <pathelement location="src/main/java"/>
+        <pathelement location="${basedir}/src/main/java"/>
       </src>
       <classpath refid="build.classpath"/>
     </javac>
@@ -57,7 +57,7 @@
     <mkdir dir="${maven.test.output}"/>
     <javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false" target="1.3">
       <src>
-        <pathelement location="src/test/java"/>
+        <pathelement location="${basedir}/src/test/java"/>
       </src>
       <classpath>
         <path refid="build.classpath"/>
@@ -80,7 +80,7 @@
         <pathelement location="${maven.test.output}"/>
       </classpath>
       <batchtest todir="${maven.test.reports}">
-        <fileset dir="src/test/java">
+        <fileset dir="${basedir}/src/test/java">
           <include name="**/*Test.java"/>
           <exclude name="**/*Abstract*Test.java"/>
         </fileset>
@@ -100,17 +100,20 @@
   
   <target name="test-zip" depends="compile, junit-present, compile-tests" description="Create a zip containing the test environment">
     <mkdir dir="${maven.build.directory}/dist/lib"/>
-    <get src="http://repo1.maven.org/maven/junit/jars/junit-3.8.1.jar" dest="${maven.build.directory}/dist/lib/junit-3.8.1.jar"/>
+    <!-- create the libraries -->
+    <copy file="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" todir="${maven.build.directory}/dist/lib"/>
     <jar jarfile="${maven.build.directory}/dist/lib/exec-test-${maven.build.version}.jar" basedir="${maven.test.output}" excludes="**/package.html"/>
     <jar jarfile="${maven.build.directory}/dist/lib/${maven.build.final.name}.jar" basedir="${maven.build.output}" excludes="**/package.html"/>
+    <!-- copy the scripts -->
+    <copy file="${basedir}/src/test/bin/testme.sh" todir="${maven.build.directory}/dist"/>
     <copy todir="${maven.build.directory}/dist/src/test/scripts">
       <fileset dir="${basedir}/src/test/scripts"/>
     </copy>
+    <!-- build the zip file -->
     <zip destfile="${maven.build.directory}/exec-${maven.build.version}.zip">
       <fileset dir="${maven.build.directory}/dist">
         <filename name="**/*.*"/>
       </fileset>
     </zip>
   </target>
-  
 </project>