cruisecontrolとSVNの統合_config.xml build.xml_http://meetrice.javaeye.com/blog/73636
config.xml
Javaコード returnaddress="[email protected]" buildresultsurl="http://home.raibledesigns.com:8888/buildresults/${project.name}" css="webapps/cruisecontrol/css/cruisecontrol.css" xsldir="webapps/cruisecontrol/xsl" logdir="logs/${project.name}" subjectprefix="[CruiseControl] ">
config.xml
Javaコード revision="HEAD" destPath="projects/${ant.project.name}" />
Javaコード
<cruisecontrol>
<project name="demo">
<!--
<plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN"/>
<plugin name="svnbootstrapper" classname="net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper"/>
-->
<listeners>
<currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
</listeners>
<!--bootstrappers>
<cvsbootstrapper localWorkingCopy="projects/${project.name}" />
</bootstrappers-->
<bootstrappers>
<svnbootstrapper localWorkingCopy="projects/${project.name}" />
</bootstrappers>
<!--quietperiod svn log , , , -->
<!--modificationset quietperiod="30">
<svn LocalWorkingCopy="projects/${project.name}"/-->
<!--cvs localWorkingCopy="projects/${project.name}"/-->
<!--filesystem folder="projects/${project.name}"/-->
<!--/modificationset-->
<schedule interval="600">
<ant anthome="apache-ant-1.6.5" buildfile="build.xml" target="pull"/>
</schedule>
<log>
<merge dir="projects/${project.name}/build/test/data"/>
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/dist/webapps/${project.name}.war"/>
</onsuccess>
<htmlemail mailhost="localhost"
returnaddress="[email protected]"
buildresultsurl="http://home.raibledesigns.com:8888/buildresults/${project.name}"
css="webapps/cruisecontrol/css/cruisecontrol.css"
xsldir="webapps/cruisecontrol/xsl"
logdir="logs/${project.name}"
subjectprefix="[CruiseControl] ">
<map alias="mraible" address="[email protected]"/>
<failure address="mraible" reportWhenFixed="true"/>
</htmlemail>
</publishers>
</project>
</cruisecontrol>
config.xml
Javaコード