jvanzyl 2002/07/07 13:26:42
Modified: . maven.xml
Log:
o Applying stephane's patches.
Revision Changes Path
1.10 +92 -4 jakarta-turbine-maven/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/maven.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- maven.xml 6 Jul 2002 16:38:22 -0000 1.9
+++ maven.xml 7 Jul 2002 20:26:41 -0000 1.10
@@ -1,4 +1,4 @@
-<project default="install">
+<project default="install" xmlns:j="jelly:core">
<!-- ================================================================== -->
<!-- I N S T A L L P L U G I N S -->
@@ -7,7 +7,8 @@
<!-- This is meant to avoid having to bootstrap for such trivial things.-->
<!-- ================================================================== -->
- <goal name="install:plugins">
+ <goal name="install:plugins"
+ description="Copy new plugins from ${maven.src.dir}/plugins to
${maven.home}/plugins">
<copy todir="${maven.home}/plugins" filtering="no" overwrite="yes">
<fileset dir="${maven.src.dir}/plugins">
@@ -24,7 +25,8 @@
<!-- This is meant to avoid having to bootstrap for such trivial things.-->
<!-- ================================================================== -->
- <goal name="install:jar">
+ <goal name="install:jar"
+ description="Compile Maven and put a new jar in ${maven.home}/lib.">
<attainGoal name="java:jar"/>
@@ -35,16 +37,102 @@
</goal>
<!-- ================================================================== -->
+ <!-- U P D A T E M A V E N F R O M C V S -->
+ <!-- ================================================================== -->
+ <!-- This updates Maven from CVS. The CVS infos are taken from the POM. -->
+ <!-- ================================================================== -->
+
+ <goal name="update:cvs"
+ description="Update Maven from CVS">
+
+ <!-- For some reason, "-q" doesn't work in the command line ... -->
+
+ <cvs command="update" dest="${basedir}">
+ <argument value="-dPA"/>
+ </cvs>
+
+ </goal>
+
+ <!-- ================================================================== -->
+ <!-- G E T D E P E N D E N C I E S -->
+ <!-- ================================================================== -->
+ <!-- Download the dependencies contained in the POM. -->
+ <!-- ================================================================== -->
+
+ <goal name="update:dependencies"
+ description="Download your dependencies from the remote repositories">
+
+ <echo>Downloading the dependencies </echo>
+
+ <property
+ name="maven.get.jars.baseUrl"
+ value="http://jakarta.apache.org/turbine/jars"
+ />
+
+ <j:forEach var="dependency" items="${pom.dependencies}">
+
+ <get src="${maven.get.jars.baseUrl}/${dependency.jar}"
+ dest="${maven.home}/lib/${dependency.jar}"
+ verbose="false"
+ usetimestamp="true"/>
+
+ </j:forEach>
+
+ />
+
+
+ </goal>
+
+ <!-- ================================================================== -->
+ <!-- U P D A T E F R O M W E B -->
+ <!-- ================================================================== -->
+ <!-- Update the project, then download dependencies. As the POM -->
+ <!-- changes, it may contain different dependencies. -->
+ <!-- ================================================================== -->
+
+ <goal name="update"
+ description="Update the project source, then download dependencies">
+
+ <attainGoal name="update:cvs"/>
+ <attainGoal name="update:dependencies"/>
+
+ </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">
+ <goal name="install"
+ description="Copy new plugins and a new maven jar to ${maven.home}">
<attainGoal name="install:plugins"/>
<attainGoal name="install:jar"/>
+ <!--
+ When we'll have online / offline mechanisms, we will check to see if
+ we have to do anything related to the web.
+
+ <attainGoal name="install:from-web"/>
+
+ -->
+ </goal>
+
+
+ <!-- ================================================================== -->
+ <!-- B O O T S T R A P -->
+ <!-- ================================================================== -->
+ <!-- Download the source from cvs, get the dependencies from the POM, -->
+ <!-- install new plugins, compile the project, and copy a new jar to -->
+ <!-- the project's home/lib directory. -->
+ <!-- ================================================================== -->
+
+ <goal name="bootstrap"
+ description="Update Maven and install it">
+
+ <attainGoal name="update"/>
+ <attainGoal name="install"/>
</goal>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>