incubator-gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1080091 - /incubator/gora/branches/0.1-incubating/build.xml
Date Thu, 10 Mar 2011 01:10:12 GMT
Author: ab
Date: Thu Mar 10 01:10:11 2011
New Revision: 1080091

URL: http://svn.apache.org/viewvc?rev=1080091&view=rev
Log:
Add a "zip" target.

Modified:
    incubator/gora/branches/0.1-incubating/build.xml

Modified: incubator/gora/branches/0.1-incubating/build.xml
URL: http://svn.apache.org/viewvc/incubator/gora/branches/0.1-incubating/build.xml?rev=1080091&r1=1080090&r2=1080091&view=diff
==============================================================================
--- incubator/gora/branches/0.1-incubating/build.xml (original)
+++ incubator/gora/branches/0.1-incubating/build.xml Thu Mar 10 01:10:11 2011
@@ -245,6 +245,16 @@
     </sequential>
   </macrodef>
 
+  <macrodef name="macro_zip" description="Worker Macro for zip">
+    <attribute name="param.destfile"/>
+    <element name="param.listofitems"/>
+    <sequential>
+      <zip destfile="@{param.destfile}">
+      <param.listofitems/>
+      </zip>
+    </sequential>
+  </macrodef>
+
   <!-- ================================================================== -->
   <!-- Make release tarball                                               -->
   <!-- ================================================================== -->
@@ -263,6 +273,23 @@
   </target>
 
   <!-- ================================================================== -->
+  <!-- Make release zipball                                               -->
+  <!-- ================================================================== -->
+  <target name="zip" depends="package" description="Make release zipball">
+    <macro_zip param.destfile="${dist.base.dir}/${final.name}.zip">
+      <param.listofitems>
+        <zipfileset dir="${dist.base.dir}">
+          <exclude name="${final.name}/bin/*" />
+          <include name="${final.name}/**" />
+        </zipfileset>
+        <zipfileset dir="${dist.base.dir}">
+          <include name="${final.name}/bin/*" />
+        </zipfileset>
+      </param.listofitems>
+    </macro_zip>
+  </target>
+
+  <!-- ================================================================== -->
   <!-- Publish Targets                                                    --> 
   <!-- ================================================================== -->
 



Mime
View raw message