aboutsummaryrefslogtreecommitdiff
path: root/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/buildAll.xml
blob: 0ec4dd68df6e89e86d9511c80fdd784a138045ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<project default="run">

	<target name="run">
		<ant antfile="build.xml" target="init" />
		<antcall target="buildAll" />
		<antcall target="test" />
		<antcall target="publish" />
		<antcall target="push" />
	</target>

	<target name="buildAll">
		<!--add calls to build.xml here to build all components-->
		
		<!-- example
		<ant antfile="build.xml" target="main">
			<property name="builder" value="" />
		</ant>
		-->
	
	</target>

	<target name="test" depends="init">
		<property name="test.xml" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/test.xml" />
		<!--
		<ant antfile="${test.xml}">
			<property name="tester" value="${basedir}/internalBuildTools/testConfigs/win32-local" />
		</ant>
		-->
	</target>

	<target name="publish" depends="init">
		<property name="publish.xml" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/publish.xml" />

		<property name="indexFileName" value="index.html" />
		<property name="result" value="${buildDirectory}/${buildLabel}" />

		<ant antfile="${publish.xml}" dir="${basedir}">
			<property name="dropTokenList" value="%sdk%,%runtime%,%examples%,%tests%" />
			<property name="isBuildTested" value="true" />
		</ant>
	</target>
	
	<target name="push" depends="init,pushftp,pushrsync">
	</target>
	
	<target name="pushftp" if="ftppush">
		<echo message="FTP to: ${remoteDirectory}/${buildLabel}"/>	
	  	<ftp server="${ftpServer}"
       		userid="${ftpUser}"
		      password="${ftpPassword}"
			remotedir="${remoteDirectory}">
		    <fileset dir="${buildDirectory}">
				<include name="${buildLabel}/**"/>
		    </fileset>
		</ftp>
		
		<!-- There may not be anything in buildnotes. ftp won't create directory in that case. But we must have one. -->
	  	<ftp server="${ftpServer}"
       		userid="${ftpUser}"
		      password="${ftpPassword}"
			action="mkdir"
			remotedir="${remoteDirectory}/${buildLabel}/buildnotes">
		</ftp>
		
	</target>
		
	<target name="pushrsync" if="rsyncpush"/>
	
</project>