jvanzyl 2004/04/05 08:55:21
Modified: maven-core/src/main/java/org/apache/maven/lifecycle
DefaultMavenLifecycleManager.java
MavenLifecycleManager.java MavenLifecyclePhase.java
Log:
Revision Changes Path
1.2 +20 -0
maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultMavenLifecycleManager.java
Index: DefaultMavenLifecycleManager.java
===================================================================
RCS file:
/home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultMavenLifecycleManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultMavenLifecycleManager.java 5 Apr 2004 15:41:46 -0000 1.1
+++ DefaultMavenLifecycleManager.java 5 Apr 2004 15:55:21 -0000 1.2
@@ -1,6 +1,7 @@
package org.apache.maven.lifecycle;
import java.util.List;
+import java.util.Iterator;
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
@@ -14,5 +15,24 @@
public List getLifecyclePhases()
{
return lifecyclePhases;
+ }
+
+ public void execute( MavenLifecycleContext context )
+ throws Exception
+ {
+ for ( Iterator iterator = lifecyclePhases.iterator(); iterator.hasNext(); )
+ {
+ MavenLifecyclePhase phase = (MavenLifecyclePhase) iterator.next();
+
+ try
+ {
+ phase.execute( context );
+ }
+ catch ( Exception cause )
+ {
+ throw new Exception(
+ "Exception occurred during the execution of " +
phase.getClass().getName() + ".", cause );
+ }
+ }
}
}
1.2 +4 -0
maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/MavenLifecycleManager.java
Index: MavenLifecycleManager.java
===================================================================
RCS file:
/home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/MavenLifecycleManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MavenLifecycleManager.java 5 Apr 2004 15:41:46 -0000 1.1
+++ MavenLifecycleManager.java 5 Apr 2004 15:55:21 -0000 1.2
@@ -10,5 +10,9 @@
{
String ROLE = MavenLifecycleManager.class.getName();
+ void execute( MavenLifecycleContext context )
+ throws Exception;
+
List getLifecyclePhases();
+
}
1.2 +2 -0
maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/MavenLifecyclePhase.java
Index: MavenLifecyclePhase.java
===================================================================
RCS file:
/home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/MavenLifecyclePhase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MavenLifecyclePhase.java 5 Apr 2004 15:41:46 -0000 1.1
+++ MavenLifecyclePhase.java 5 Apr 2004 15:55:21 -0000 1.2
@@ -8,6 +8,8 @@
{
String ROLE = MavenLifecyclePhase.class.getName();
+ String MAVEN = "maven";
+
void execute( MavenLifecycleContext context )
throws Exception;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]