Code Search for Developers
 
 
  

build.xml from cruisecontrol at Krugle


Show build.xml syntax highlighted

<project default="conf">

	<property file="override.properties" />
	<property name="cc.home" location="../.." />



	<!-- ================================= 
          target: conf              
         ================================= -->
	<target name="conf"
	        depends=""
	        description="Configure the wrapper conf file">


		<property name="cc.work.dir" location="c:\builds" />
		<property name="cc.config.file" location="${cc.work.dir}/config.xml" />

		<copy todir="conf" overwrite="true">
			<fileset dir="conf">
				<include name="*.template.conf" />
			</fileset>
			<filterset>
				<filter token="ANT_HOME" value="${ant.home}" />
				<filter token="JAVA_HOME" value="${java.home}" />
				<filter token="CC_HOME" value="${cc.home}" />
				<filter token="VERSION" value="v2.1.6" />
				<filter token="WORK_DIR" value="${cc.work.dir}" />
				<filter token="CONFIG_FILE" value="${cc.config.file}" />
			</filterset>
			<mapper type="glob" from="*.template.conf" to="*.conf" />
		</copy>



	</target>


	<!-- = = = = = = = = = = = = = = = = =
          macrodef: cruisecontrol          
         = = = = = = = = = = = = = = = = = -->
	<macrodef name="cruisecontrol">
		<attribute name="command" />
		<attribute name="failonerror" default="true" />
		<sequential>
			<exec dir="${basedir}/bin" executable="cmd.exe" failonerror="@{failonerror}">
				<arg value="/c" />
				<arg value="cruisecontrol" />
				<arg value="@{command}" />
			</exec>
		</sequential>
	</macrodef>




	<target name="install" depends="conf">
		<cruisecontrol command="install" />
	</target>
	<target name="start" depends="conf">
		<cruisecontrol command="start" />
	</target>

	
	<target name="stop" depends="conf">
		<cruisecontrol command="stop" />
	</target>
	<target name="remove" depends="conf">
		<cruisecontrol command="remove" />
	</target>
	<target name="restart" depends="conf">
		<cruisecontrol command="restart" />
	</target>
	
	
	
    <!-- ================================= 
          target: reinstall              
         ================================= -->
    <target name="reinstall" depends="conf"  description="Remove and install">
    	<cruisecontrol command="remove" failonerror="false"/>
        <cruisecontrol command="install"/>
    </target>


	
	
</project>




See more files for this project here

cruisecontrol

CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds.

Project homepage: http://sourceforge.net/projects/cruisecontrol
Programming language(s): Java,XML
License: other

  bin/
    InstallCruisecontrolWrapper-NT.bat
    UninstalCruisecontrolWrapper-NT.bat
    cruisecontrol.bat
    cruisecontrolWrapper.bat
    cruisecontrolWrapperNoWrapper.bat
  conf/
    wrapper.template.conf
  lib/
  README.txt
  build.xml