Source

openx / cc-build.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<project name="openx" default="cruise">
	<macrodef name="svn-update">
		<attribute name="workDir"/>
		<attribute name="username"/>
		<attribute name="password"/>
		<sequential>
			<exec dir="@{workDir}" executable="svn" failonerror="true">
				<arg line="update --non-interactive --username @{username} --password @{password}"/>
			</exec>
		</sequential>
	</macrodef>

	<target name="init">
		<fail unless="label" message="Need to have 'label' defined"/>
	</target>

	<target name="clean">
		<delete file="build.log"/>
		<ant antfile="build.xml" dir="${basedir}" target="clean"/>
	</target>

	<target name="update">
		<svn-update workDir="${basedir}" username="cruise" password="cruise"/>
	</target>

	<target name="clone">
		<delete dir="target"/>
		<copy todir="target" overwrite="true">
			<fileset dir=".">
				<exclude name="target/**"/>
			</fileset>
		</copy>
	</target>

	<target name="build" depends="init, clone">
		<ant antfile="build.xml" dir="${basedir}/target" output="build.log" target="simpletest" />
	</target>

	<target name="chmod">
		<ant antfile="build-canoo.xml" dir="${basedir}" target="canoo-chmod" inheritall="false"/>
	</target>
	<target name="test-canoo" depends="clean, chmod, clone">	
	<!-- <target name="test-canoo" depends="clean, clone"> -->
		<ant antfile="build-canoo.xml" dir="${basedir}/target" output="build.log" target="run-test" />
	</target>

	<target name="test-canoo-schemaspy" depends="test-jmeter">
		<ant antfile="build.xml" dir="${basedir}/target/tests/schemaspy" output="schemaspy.log" target="schemaspy" inheritall="true"/>
	</target>

	<target name="test-jmeter" depends="test-canoo">
		<ant antfile="build.xml" dir="${basedir}/target/tests/jmeter" output="jmeter.log" target="jmeter" inheritall="true"/>
	</target>

	
	<target name="make-release">
		<ant antfile="build.xml" dir="${basedir}" output="build.log" target="release" />
	</target>

	<target name="cruise" depends="init, update, clean, build"/>

	<target name="release" depends="init, clean, update, make-release"/>

</project>