|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.test.plugin.BuildTool
public class BuildTool
Test-tool used to execute Maven builds in order to test plugin functionality.
Field Summary | |
---|---|
static java.lang.String |
ROLE
|
Constructor Summary | |
---|---|
BuildTool()
|
Method Summary | |
---|---|
InvocationRequest |
createBasicInvocationRequest(java.io.File pom,
java.util.Properties properties,
java.util.List goals,
java.io.File buildLogFile)
Construct a standardized InvocationRequest given the test-build POM, a set of CLI properties, a list of goals to execute, and the location of a log file to which build output should be directed. |
void |
dispose()
Not currently used; when this API switches to use the Maven Embedder, it will be used to shutdown the embedder and its associated container, to free up JVM memory. |
InvocationResult |
executeMaven(java.io.File pom,
java.util.Properties properties,
java.util.List goals,
java.io.File buildLogFile)
Build a standard InvocationRequest using the specified test-build POM, command-line properties, goals, and output logfile. |
InvocationResult |
executeMaven(InvocationRequest request)
Execute a test build using a customized InvocationRequest. |
void |
initialize()
Initialize this tool once it's been instantiated and composed, in order to start up the MavenInvoker instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROLE
Constructor Detail |
---|
public BuildTool()
Method Detail |
---|
public InvocationResult executeMaven(java.io.File pom, java.util.Properties properties, java.util.List goals, java.io.File buildLogFile) throws TestToolsException
pom
- The test-build POMproperties
- command-line properties to fine-tune the test build, or test parameter
extraction from CLI propertiesgoals
- The list of goals and/or lifecycle phases to execute during this buildbuildLogFile
- The logfile used to capture build output
TestToolsException
public InvocationResult executeMaven(InvocationRequest request) throws TestToolsException
createBasicInvocationRequest
method in this class.
request
- The customized InvocationRequest containing the configuration used to execute
the current test build
TestToolsException
public InvocationRequest createBasicInvocationRequest(java.io.File pom, java.util.Properties properties, java.util.List goals, java.io.File buildLogFile)
pom
- The POM for the test buildproperties
- The command-line properties for use in this test buildgoals
- The goals and/or lifecycle phases to execute during the test buildbuildLogFile
- Location to which build output should be logged
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public void dispose()
dispose
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |