General
cruisecontrol.xml
configuration file?
Multiprojects
cruisecontrol.xml
configuration file?maven.cruisecontrol.template
, then that will be used
instead. If you want to wrap all of your logic up in your own plugin so that
you don't have to set each project individually, then add this goal to your plugin's
plugin.jelly file:
<preGoal name="cruisecontrol:configure"> <maven:set plugin="maven-cruisecontrol-plugin" property="maven.cruisecontrol.template" value="${plugin.resources}/custom_cruisecontrol.jsl"/> </preGoal>
mailhost=${myplugin.cruisecontrol.mailhost}
in your cruisecontrol.jsl!
<preGoal name="cruisecontrol:validate"> <ant:echo message="Generating CruiseControl configuration for ${systemScope['os.name']} platform. "/> <j:choose> <j:when test="${systemScope['os.name'].startsWith('Windows')}"> <ant:property name="maven.cruisecontrol.home" value="${anite.cruisecontrol.windows.home}"/> <ant:property name="anite.cruisecontrol.mavenscript" value="${myplugin.cruisecontrol.windows.mavenscript}"/> </j:when> <j:otherwise> <ant:property name="maven.cruisecontrol.home" value="${myplugin.cruisecontrol.linux.home}"/> <ant:property name="myplugin.cruisecontrol.mavenscript" value="${myplugin.cruisecontrol.linux.mavenscript}"/> </j:otherwise> </j:choose> <ant:echo message="maven.cruisecontrol.template:${maven.cruisecontrol.template}"/> </preGoal>
${maven.cruisecontrol.checkout.dir}
. The checkout
should be done as the same user defined in project.xml. This is
because the SCM plugin must be able to keep the
project in sync with the repository.