werken 2002/07/06 09:38:22
Modified: . maven.xml
Log:
Applied Stephane's install patch.
Revision Changes Path
1.9 +48 -14 jakarta-turbine-maven/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/maven.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- maven.xml 6 Jul 2002 04:49:10 -0000 1.8
+++ maven.xml 6 Jul 2002 16:38:22 -0000 1.9
@@ -1,17 +1,51 @@
-<project default="java:jar">
+<project default="install">
-<!--
- <preGoal name="java:compile">
- <echo>
- This is a callback before java:compile
- </echo>
- </preGoal>
-
- <postGoal name="java:compile">
- <echo>
- This is a callback after java:compile
- </echo>
- </postGoal>
--->
+ <!-- ================================================================== -->
+ <!-- I N S T A L L P L U G I N S -->
+ <!-- ================================================================== -->
+ <!-- This copies the plugins found in src/plugins to -->
+ <!-- This is meant to avoid having to bootstrap for such trivial things.-->
+ <!-- ================================================================== -->
+
+ <goal name="install:plugins">
+
+ <copy todir="${maven.home}/plugins" filtering="no" overwrite="yes">
+ <fileset dir="${maven.src.dir}/plugins">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+
+ </goal>
+
+ <!-- ================================================================== -->
+ <!-- I N S T A L L J A R -->
+ <!-- ================================================================== -->
+ <!-- This compiles Maven and puts the jar in ${maven.home}/lib. -->
+ <!-- This is meant to avoid having to bootstrap for such trivial things.-->
+ <!-- ================================================================== -->
+
+ <goal name="install:jar">
+
+ <attainGoal name="java:jar"/>
+
+ <copy file="${maven.build.dir}/${maven.final.name}.jar"
+ tofile="${maven.home}/lib/${maven.final.name}.jar"
+ overwrite="yes"/>
+
+ </goal>
+
+ <!-- ================================================================== -->
+ <!-- I N S T A L L D E F A U L T G O A L -->
+ <!-- ================================================================== -->
+ <!-- This is meant to avoid having to bootstrap for such trivial things -->
+ <!-- as modifying plugins or maven's code. -->
+ <!-- ================================================================== -->
+
+ <goal name="install">
+
+ <attainGoal name="install:plugins"/>
+ <attainGoal name="install:jar"/>
+
+ </goal>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>