|
||||||||||
| 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.MavenBuilder
Maven builder class. 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 | |
MavenBuilder()
|
|
| Method Summary | |
org.jdom.Element |
build(java.util.Map buildProperties,
Progress progressIn)
build and return the results via xml. |
org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String target,
Progress progress)
Execute a build with the given target. |
protected java.util.List |
getGoalSets()
Produces sets of goals, ready to be run each in a distinct call to Maven. |
void |
setGoal(java.lang.String goal)
Maven goal to run. |
void |
setMavenScript(java.lang.String mavenScript)
|
void |
setProjectFile(java.lang.String projectFile)
|
void |
setTimeout(long timeout)
Sets build timeout in seconds. |
void |
validate()
|
| Methods inherited from class net.sourceforge.cruisecontrol.Builder |
compareTo, getGroup, getMultiple, getShowProgress, getTime, isValidDay, setGroup, setMultiple, setShowProgress, 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 MavenBuilder()
| Method Detail |
public void validate()
throws CruiseControlException
validate in class BuilderCruiseControlException
public org.jdom.Element build(java.util.Map buildProperties,
Progress progressIn)
throws CruiseControlException
build in class BuilderbuildProperties - build propertiesprogressIn - callback to provide progress updates
CruiseControlException - if something breaks
public org.jdom.Element buildWithTarget(java.util.Map properties,
java.lang.String target,
Progress progress)
throws CruiseControlException
Builder
buildWithTarget in class Builderproperties - build propertiestarget - the build target to call, overrides target defined in configprogress - callback to provide progress updates
CruiseControlException - if something breakspublic void setMavenScript(java.lang.String mavenScript)
mavenScript - The path to the Maven script
(i.e. the maven.bat file, because I tested this only on w2k).public void setGoal(java.lang.String goal)
goal - Maven goal to runpublic void setProjectFile(java.lang.String projectFile)
projectFile - project.xml to useprotected java.util.List getGoalSets()
public void setTimeout(long timeout)
timeout - long build timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||