|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.builders.Maven2Script
Maven2 script class based on the Maven builder class from
Eric Pugh.
Contains all the details related to running a Maven based build.
Constructor Summary | |
Maven2Script(org.jdom.Element buildLogElement,
java.lang.String mvn,
java.lang.String pomFile,
java.lang.String goals,
java.lang.String settingsFile,
java.lang.String activateProfiles,
java.lang.String flags)
|
Method Summary | |
Commandline |
buildCommandline()
Construct the command that we're going to execute. |
void |
consumeLine(java.lang.String line)
Analyze the output of the mvn command. |
protected void |
flushCurrentElement()
|
int |
getExitCode()
|
void |
setBuildProperties(java.util.Map buildProperties)
|
void |
setExitCode(int exitCode)
exitCode is what is returned from running the script |
void |
setGoalset(java.lang.String goalset)
|
void |
setMvnScript(java.lang.String mvnScript)
|
void |
setPomFile(java.lang.String pomFile)
|
void |
setProperties(java.util.List properties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Maven2Script(org.jdom.Element buildLogElement, java.lang.String mvn, java.lang.String pomFile, java.lang.String goals, java.lang.String settingsFile, java.lang.String activateProfiles, java.lang.String flags)
buildLogElement
- Log to store result of the execution for CCmvn
- path to the mvn scriptpomFile
- path to the pom filegoals
- the goalset to executesettingsFile
- path to the settings file (not required)activateProfiles
- comma-delimited list of profiles to activate. (not required)flags
- extra parameter to pass to mvn e.g.: -U (not required)Method Detail |
public Commandline buildCommandline() throws CruiseControlException
buildCommandline
in interface Script
CruiseControlException
public void consumeLine(java.lang.String line)
consumeLine
in interface StreamConsumer
protected void flushCurrentElement()
public void setBuildProperties(java.util.Map buildProperties)
buildProperties
- The buildProperties to set.public void setGoalset(java.lang.String goalset)
goalset
- The goalset to set.public void setMvnScript(java.lang.String mvnScript)
mvnScript
- The mavenScript to set.public void setPomFile(java.lang.String pomFile)
pomFile
- The projectFile to set.public void setProperties(java.util.List properties)
properties
- The properties to set.public int getExitCode()
getExitCode
in interface Script
public void setExitCode(int exitCode)
Script
setExitCode
in interface Script
exitCode
- The exitCode to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |