gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r575424 - /gump/mvnrepo/trunk/build.xml
Date Thu, 13 Sep 2007 20:08:24 GMT
Author: bodewig
Date: Thu Sep 13 13:08:23 2007
New Revision: 575424

URL: http://svn.apache.org/viewvc?rev=575424&view=rev
Log:
packaging

Modified:
    gump/mvnrepo/trunk/build.xml

Modified: gump/mvnrepo/trunk/build.xml
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/build.xml?rev=575424&r1=575423&r2=575424&view=diff
==============================================================================
--- gump/mvnrepo/trunk/build.xml (original)
+++ gump/mvnrepo/trunk/build.xml Thu Sep 13 13:08:23 2007
@@ -1,6 +1,7 @@
 <project name="gump.mvn.repository" default="compile">
 
   <property name="build.dir" location="build"/>
+  <property name="target.jar" location="lib/repoproxy.jar"/>
   <property name="classes.dir" location="${build.dir}/classes"/>
 
   <target name="init">
@@ -20,14 +21,33 @@
     </javac>
   </target>
 
-  <target name="run" depends="compile">
-    <java classname="org.apache.gump.mvnrepo.Main" fork="true">
-      <sysproperty key="java.util.logging.config.file"
-        file="mvnrepo.logging.config"/>
+  <target name="jar" depends="compile">
+    <delete file="${target.jar}" quiet="true"/>
+    <manifestclasspath property="manifest.classpath"
+                       jarfile="${target.jar}">
       <classpath>
         <fileset dir="lib"/>
-        <pathelement location="${classes.dir}"/>
       </classpath>
+    </manifestclasspath>
+    <jar destfile="${target.jar}">
+      <manifest>
+        <attribute name="Main-Class" value="org.apache.gump.mvnrepo.Main"/>
+        <attribute name="Class-Path" value="${manifest.classpath}"/>
+      </manifest>
+      <fileset dir="${classes.dir}"/>
+    </jar>
+  </target>
+
+  <target name="run" depends="jar">
+    <java jar="${target.jar}" fork="true">
+      <sysproperty key="java.util.logging.config.file"
+        file="mvnrepo.logging.config"/>
     </java>
+  </target>
+
+  <target name="zip" depends="jar">
+    <zip destfile="repoproxy.zip">
+      <fileset dir="." includes="lib/"/>
+    </zip>
   </target>
 </project>



Mime
View raw message