jtaylor 02/05/24 06:35:53
Modified: src/templates/build build.init.target
Log:
No need to define the task for every callback target.
Revision Changes Path
1.35 +8 -7 jakarta-turbine-maven/src/templates/build/build.init.target
Index: build.init.target
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build.init.target,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- build.init.target 24 May 2002 13:09:52 -0000 1.34
+++ build.init.target 24 May 2002 13:35:53 -0000 1.35
@@ -337,6 +337,14 @@
<!-- ================================================================== -->
<!-- C A L L B A C K S -->
<!-- ================================================================== -->
+
+ <taskdef name="maven-ant"
+ classname="org.apache.maven.ant.Ant">
+ <classpath>
+ <path refid="maven-classpath"/>
+ </classpath>
+ </taskdef>
+
#foreach( $cbName in $callbacks.get( $plugin ) )
#set( $buildFile = "${cbPrefix}.${plugin}.callback.${cbName}.${cbFile}" )
#set( $buildTarget = "${cbPrefix}.${plugin}.callback.${cbName}.${cbTarget}" )
@@ -357,13 +365,6 @@
<target name="#callback( $cbName )"
depends="${cbName}-callback-check"
if="maven.callback.${cbName}.ok">
-
- <taskdef name="maven-ant"
- classname="org.apache.maven.ant.Ant">
- <classpath>
- <path refid="maven-classpath"/>
- </classpath>
- </taskdef>
<maven-ant antfile="$buildFile"
target="$buildTarget"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>