forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: rev 57343 - forrest/trunk/plugins
Date Wed, 10 Nov 2004 18:07:43 GMT
Author: rgardler
Date: Wed Nov 10 10:07:42 2004
New Revision: 57343

Modified:
   forrest/trunk/plugins/build.xml
Log:
Add local-deploy target to copy files to the build directoryChange distribution directory
to relevant directory in site-author

Modified: forrest/trunk/plugins/build.xml
==============================================================================
--- forrest/trunk/plugins/build.xml	(original)
+++ forrest/trunk/plugins/build.xml	Wed Nov 10 10:07:42 2004
@@ -16,21 +16,30 @@
 -->
 <project default="dist" basedir="." name="Forrest build file">
   
-  <property name="plugins.dist-dir" value="dist"/>
+  <property name="plugins.dist-dir" value="../site-author/content/plugins"/>
+  <property name="plugins.localDeploy-dir" value="../build/plugins"/>
   
   <target name="init">
     <mkdir dir="${plugins.dist-dir}"/>  
   </target>
   
-  <target name="cleanDist">
-    <delete dir="${plugins.dist-dir}"/>
+  <!-- FIXME: Forrest should really use the plugins in-place if they are available as
source -->
+  <target name="local-deploy"
+          description="Deploy a plugin locally"
+          depends="init">
+    <input message="Which plugin do you want to package?"
+           addproperty="plugin-name"/>
+    <copy toDir="${plugins.localDeploy-dir}/${plugin-name}">
+      <fileset dir="${plugin-name}">
+       <exclude name="**/build/**"/>
+      </fileset>
+    </copy>
   </target>
   
-    
-  
+  <!-- FIXME: needs to append FOrrest version number to filename -->
   <target name="dist"
           description="Build the distribution archive for all the plugins"
-          depends="cleanDist, init">
+          depends="init">
     <input message="Which plugin do you want to package?"
            addproperty="plugin-name"/>
     <zip destfile="${plugins.dist-dir}/${plugin-name}.zip"

Mime
View raw message