incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1228523 - /incubator/lcf/warthog/trunk/build.xml
Date Sat, 07 Jan 2012 00:40:18 GMT
Author: kwright
Date: Sat Jan  7 00:40:18 2012
New Revision: 1228523

URL: http://svn.apache.org/viewvc?rev=1228523&view=rev
Log:
Package a jar

Modified:
    incubator/lcf/warthog/trunk/build.xml

Modified: incubator/lcf/warthog/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/warthog/trunk/build.xml?rev=1228523&r1=1228522&r2=1228523&view=diff
==============================================================================
--- incubator/lcf/warthog/trunk/build.xml (original)
+++ incubator/lcf/warthog/trunk/build.xml Sat Jan  7 00:40:18 2012
@@ -19,6 +19,7 @@
 
     <target name="clean">
         <delete dir="build"/>
+        <delete dir="dist"/>
     </target>
     
     <target name="compile">
@@ -32,6 +33,22 @@
         </javac>
     </target>
 
+    <target name="jar" depends="compile">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/warthog.jar">
+          <fileset dir="build/classes"/>
+        </jar>
+    </target>
+
+    <target name="deliver" depends="jar">
+        <mkdir dir="dist"/>
+        <copy todir="dist">
+            <fileset dir="build/jar">
+                <include name="*.jar"/>
+            </fileset>
+        </copy>
+    </target>
+
     <target name="compile-tests" depends="compile">
         <mkdir dir="build/test-classes"/>
         <javac srcdir="src/test/java" destdir="build/test-classes" target="1.5" source="1.5"
debug="true" debuglevel="lines,vars,source">
@@ -82,6 +99,6 @@
         </junit>
     </target>
 
-    <target name="all" depends="compile,run-tests"/>
+    <target name="all" depends="deliver,run-tests"/>
     
 </project>



Mime
View raw message