brett 2004/02/18 14:56:06
Modified: src/java/org/apache/maven/plugin Tag: MAVEN-1_0-BRANCH
PluginManager.java
src/conf Tag: MAVEN-1_0-BRANCH driver.jelly
Log:
PR: MAVEN-488
build:start/build:end goals
Revision Changes Path
No revision
No revision
1.70.4.17 +8 -2 maven/src/java/org/apache/maven/plugin/PluginManager.java
Index: PluginManager.java
===================================================================
RCS file: /home/cvs/maven/src/java/org/apache/maven/plugin/PluginManager.java,v
retrieving revision 1.70.4.16
retrieving revision 1.70.4.17
diff -u -r1.70.4.16 -r1.70.4.17
--- PluginManager.java 13 Feb 2004 02:31:25 -0000 1.70.4.16
+++ PluginManager.java 18 Feb 2004 22:56:06 -0000 1.70.4.17
@@ -525,8 +525,14 @@
}
if ( goals == null )
{
+ // So the reactor can process projects but not run any goals
goals = Collections.EMPTY_LIST;
}
+ else {
+ // Always run build:start and build:end
+ goals.add( 0, "build:start" );
+ goals.add( "build:end" );
+ }
// TODO [1.0]: any reason not to do this at the start?
transientMapper.merge( mapper );
@@ -620,7 +626,7 @@
pluginContext.setVariable( "plugin.dir", pluginDirectory );
pluginContext.setVariable( "plugin.resources", new File(
pluginDirectory, "plugin-resources" ) );
- this.runScript(housing, pluginContext);
+ this.runScript( housing, pluginContext );
}
return pluginSet;
}
No revision
No revision
1.28.4.1 +3 -0 maven/src/conf/driver.jelly
Index: driver.jelly
===================================================================
RCS file: /home/cvs/maven/src/conf/driver.jelly,v
retrieving revision 1.28
retrieving revision 1.28.4.1
diff -u -r1.28 -r1.28.4.1
--- driver.jelly 3 Oct 2003 05:33:05 -0000 1.28
+++ driver.jelly 18 Feb 2004 22:56:06 -0000 1.28.4.1
@@ -47,6 +47,9 @@
</ant:path>
</j:if>
+ <goal name="build:start">
+ </goal>
+
<goal name="build:end">
</goal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]