1402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<project default="run">
2402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
3402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="run">
4402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<ant antfile="build.xml" target="init" />
5402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<antcall target="buildAll" />
6402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<antcall target="test" />
7402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<antcall target="publish" />
8402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<antcall target="push" />
9402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
10402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
11402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="buildAll">
12402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<!--add calls to build.xml here to build all components-->
13402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		
14402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<!-- example
15402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<ant antfile="build.xml" target="main">
16402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			<property name="builder" value="" />
17402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		</ant>
18402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		-->
19402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	
20402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
21402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
22402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="test" depends="init">
23402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<property name="test.xml" value="/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/test.xml" />
24402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<!--
25402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<ant antfile="${test.xml}">
26402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			<property name="tester" value="${basedir}/internalBuildTools/testConfigs/win32-local" />
27402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		</ant>
28402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		-->
29402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
30402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
31402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="publish" depends="init">
32402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<property name="publish.xml" value="/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/publish.xml" />
33402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
34402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<property name="indexFileName" value="index.html" />
35402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<property name="result" value="${buildDirectory}/${buildLabel}" />
36402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll
37402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<ant antfile="${publish.xml}" dir="${basedir}">
38402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			<property name="dropTokenList" value="%sdk%,%runtime%,%examples%,%tests%" />
39402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			<property name="isBuildTested" value="true" />
40402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		</ant>
41402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
42402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	
43402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="push" depends="init,pushftp,pushrsync">
44402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
45402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	
46402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="pushftp" if="ftppush">
47402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<echo message="FTP to: ${remoteDirectory}/${buildLabel}"/>	
48402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	  	<ftp server="${ftpServer}"
49402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll       		userid="${ftpUser}"
50402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		      password="${ftpPassword}"
51402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			remotedir="${remoteDirectory}">
52402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		    <fileset dir="${buildDirectory}">
53402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll				<include name="${buildLabel}/**"/>
54402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		    </fileset>
55402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		</ftp>
56402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		
57402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		<!-- There may not be anything in buildnotes. ftp won't create directory in that case. But we must have one. -->
58402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	  	<ftp server="${ftpServer}"
59402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll       		userid="${ftpUser}"
60402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		      password="${ftpPassword}"
61402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			action="mkdir"
62402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll			remotedir="${remoteDirectory}/${buildLabel}/buildnotes">
63402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		</ftp>
64402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		
65402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	</target>
66402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll		
67402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	<target name="pushrsync" if="rsyncpush"/>
68402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll	
69402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</project>