forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r528349 - /forrest/trunk/plugins/build.xml
Date Fri, 13 Apr 2007 04:25:44 GMT
Author: crossley
Date: Thu Apr 12 21:25:40 2007
New Revision: 528349

URL: http://svn.apache.org/viewvc?view=rev&rev=528349
Log:
Plugins "dist" target needed to depend on "jar" and include the built jar into the plugin's
lib directory inside the zip archive.
Thanks to Brian Dube for discovering that plugins were missing plugin jars.

Modified:
    forrest/trunk/plugins/build.xml

Modified: forrest/trunk/plugins/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/build.xml?view=diff&rev=528349&r1=528348&r2=528349
==============================================================================
--- forrest/trunk/plugins/build.xml (original)
+++ forrest/trunk/plugins/build.xml Thu Apr 12 21:25:40 2007
@@ -365,13 +365,18 @@
   </target>
   
   <target name="dist"
-          description="Build the distribution archive for all the plugins"
-          depends="init">
+          description="Build the distribution archive for a plugin"
+          depends="jar">
     <mkdir dir="${forrest.plugins.dist.dir}/${forrest.version}"/>  
-    <zip destfile="${forrest.plugins.dist.dir}/${forrest.version}/${plugin-name}-${plugin-version}.zip"
-       basedir="${forrest.plugins.dir}/${plugin-name}"
-       includes="**"
-       excludes="**/build/**"/>
+    <zip destfile="${forrest.plugins.dist.dir}/${forrest.version}/${plugin-name}-${plugin-version}.zip">
+      <zipfileset dir="${forrest.plugins.dir}/${plugin-name}">
+        <include name="**"/>
+        <exclude name="**/build/**"/>
+      </zipfileset>
+      <zipfileset dir="${build.dir}" prefix="lib">
+        <include name="${plugin-name}.jar"/>
+      </zipfileset>
+    </zip>
   </target>
   
   <target name="seedPlugin"



Mime
View raw message