|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.PerDayScheduleItem
net.sourceforge.cruisecontrol.Builder
net.sourceforge.cruisecontrol.builders.Maven2Builder
Maven2 builder class based on the Maven builder class from
Florin Vancea.
Attempts to mimic the behavior of Ant builds, at least as far as CC is
concerned. Basically it's a (heavily) edited version of AntBuilder. No style
at all, but serves its purpose. :)
Field Summary |
Fields inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem |
INVALID_NAME_OF_DAY, NOT_SET |
Constructor Summary | |
Maven2Builder()
|
Method Summary | |
org.jdom.Element |
build(java.util.Map buildProperties)
build and return the results via xml. |
org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String target)
|
Property |
createProperty()
|
protected java.lang.String |
findMaven2Script(boolean isWindows)
If the mvnhome attribute is set, then this method returns the correct shell script to use for a specific environment. |
void |
setActivateProfiles(java.lang.String activateProfiles)
Set the comma-delimited list of profiles to activate. |
void |
setFlags(java.lang.String flags)
Set flags. |
void |
setGoal(java.lang.String goal)
|
void |
setMvnHome(java.lang.String mvnHome)
Set mvnHome. |
void |
setMvnScript(java.lang.String mvnScipt)
|
void |
setPomFile(java.lang.String pomFile)
Set the pom file. |
void |
setSettingsFile(java.lang.String settingsFile)
Set an Alternate path for the user settings file. |
void |
setTimeout(long timeout)
|
void |
validate()
Check at the starting of CC if required attributes are set |
Methods inherited from class net.sourceforge.cruisecontrol.Builder |
compareTo, getGroup, getMultiple, getTime, isValidDay, setGroup, setMultiple, setTime |
Methods inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem |
getDay, setDay |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Maven2Builder()
Method Detail |
public void setSettingsFile(java.lang.String settingsFile)
settingsFile
- Alternate path for the user settings file.public void setActivateProfiles(java.lang.String activateProfiles)
activateProfiles
- comma-delimited list of profiles to activate.public void setMvnHome(java.lang.String mvnHome)
mvnHome
- the mvn homepublic void setMvnScript(java.lang.String mvnScipt)
mvnScipt
- Full path to Maven script, which overrides the default ".../bin/mvn"public void setPomFile(java.lang.String pomFile)
pomFile
- the pom filepublic void setGoal(java.lang.String goal)
public Property createProperty()
public void setTimeout(long timeout)
public void validate() throws CruiseControlException
validate
in class Builder
CruiseControlException
- When the current settings are not valid.public org.jdom.Element build(java.util.Map buildProperties) throws CruiseControlException
build
in class Builder
CruiseControlException
public org.jdom.Element buildWithTarget(java.util.Map properties, java.lang.String target) throws CruiseControlException
buildWithTarget
in class Builder
CruiseControlException
public void setFlags(java.lang.String flags)
flags
- set the flagsprotected java.lang.String findMaven2Script(boolean isWindows) throws CruiseControlException
isWindows
- if True, return a path tailored for Windows (suffixed w/ .bat).
CruiseControlException
- if the mvnhome attributed is not set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |