You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Henning P. Schmiedehausen" <hp...@intermeta.de> on 2002/06/15 18:01:56 UTC

classpath-copy - Patch for Maven

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     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: classpath-copy - Patch for Maven

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Warner Onstine" <sw...@warneronstine.com> writes:

>You probably want to post both of these on the maven dev list:
>http://jakarta.apache.org/turbine/maven/mail-lists.html

Hi,

there is a maven list? Ok, I'll post there. Thanks.

	Regards
		Henning
-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: classpath-copy - Patch for Maven

Posted by Warner Onstine <sw...@warneronstine.com>.
You probably want to post both of these on the maven dev list:
http://jakarta.apache.org/turbine/maven/mail-lists.html

-warner

----- Original Message -----
From: "Henning P. Schmiedehausen" <hp...@intermeta.de>
Newsgroups: hometree.jakarta.turbine.dev
To: <tu...@jakarta.apache.org>
Sent: Saturday, June 15, 2002 9:01 AM
Subject: classpath-copy - Patch for Maven


> 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
  -->
> +  <!--
================================================================== -->
> +
> +  <target
> +    name="local-init"
> +    depends="init">
> +
> +  </target>
> +
> +  <!--
================================================================== -->
> +  <!-- C L A S S P A T H   C O P
  -->
> +  <!--
================================================================== -->
> +
> +  <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     hps@intermeta.de
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>