Hi,

this is a patch against maven 1.0-b4 which adds the classpath-copy
task that I described in my last mail as an additional module to the
maven source.  It is in a new plugin called "extra" and built with the
normal maven build.

        Regards
                Henning

diff --exclude=CVS -Nurb jakarta-turbine-maven/src/templates/build/Control.vm 
../cvs/maven/src/templates/build/Control.vm
--- jakarta-turbine-maven/src/templates/build/Control.vm        Wed May 29 04:13:55 
2002
+++ ../cvs/maven/src/templates/build/Control.vm Sat Jun 15 17:27:26 2002
@@ -40,6 +40,7 @@
 $buildElements.add("build-test.xml")
 $buildElements.add("build-iutest.xml")
 $buildElements.add("build-reactor.xml")
+$buildElements.add("build-extra.xml")
 
 ## -------------------------------------------------------
 ## Create the output directory
diff --exclude=CVS -Nurb jakarta-turbine-maven/src/templates/build/build-extra.xml 
../cvs/maven/src/templates/build/build-extra.xml
--- jakarta-turbine-maven/src/templates/build/build-extra.xml   Thu Jan  1 01:00:00 
1970
+++ ../cvs/maven/src/templates/build/build-extra.xml    Sat Jun 15 17:26:52 2002
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+
+<project name="$project.id" default="jar" basedir="$antBasedir">
+
+  <target name="classpath-copy">
+    <ant antfile="${maven.home}/plugins/extra/build.xml" target="classpath-copy"/>
+  </target>
+
+</project>
diff --exclude=CVS -Nurb 
jakarta-turbine-maven/src/templates/build/plugins/extra/Control.vm 
../cvs/maven/src/templates/build/plugins/extra/Control.vm
--- jakarta-turbine-maven/src/templates/build/plugins/extra/Control.vm  Thu Jan  1 
01:00:00 1970
+++ ../cvs/maven/src/templates/build/plugins/extra/Control.vm   Sat Jun 15 17:22:02 
+2002
@@ -0,0 +1,19 @@
+## -------------------------------------------------------
+## Control file for Maven extra plug-in
+## -------------------------------------------------------
+
+## -------------------------------------------------------
+## Add build files to the list
+## -------------------------------------------------------
+$buildElements.add("plugins/$plugin/build.xml")
+
+## -------------------------------------------------------
+## Make the list of delegators
+## -------------------------------------------------------
+$delegators.put("classpath-copy",  "plugins/$plugin/build.xml")
+
+## -------------------------------------------------------
+## Make the list of callbacks
+## -------------------------------------------------------
+$callbacks.put( "$plugin", [ "pre-classpath-copy", "post-classpath-copy" ] )
+
diff --exclude=CVS -Nurb 
jakarta-turbine-maven/src/templates/build/plugins/extra/build.xml 
../cvs/maven/src/templates/build/plugins/extra/build.xml
--- jakarta-turbine-maven/src/templates/build/plugins/extra/build.xml   Thu Jan  1 
01:00:00 1970
+++ ../cvs/maven/src/templates/build/plugins/extra/build.xml    Sat Jun 15 17:25:56 
+2002
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+
+<project name="maven" default="classpath-copy" basedir="..">
+
+  #parse("build.init.target")
+
+  <!-- ================================================================== -->
+  <!-- L O C A L   I N I T                                                -->
+  <!-- ================================================================== -->
+
+  <target
+    name="local-init"
+    depends="init">
+
+  </target>
+
+  <!-- ================================================================== -->
+  <!-- C L A S S P A T H   C O P Y                                        -->
+  <!-- ================================================================== -->
+
+  <target name="classpath-copy"
+     depends="local-init, #callback("pre-classpath-copy"), do-classpath-copy, 
+#callback("post-classpath-copy")"
+     description="==> Copies all jars referenced in the project.xml file into a given 
+directory"/>
+
+  <target name="do-classpath-copy">
+
+    <copy todir="${target.directory}">
+      <fileset dir="${lib.repo}">
+        <patternset refid="maven.dependency.set"/>
+      </fileset>
+    </copy>
+
+  </target>
+
+</project>
+    

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to