Home | History | Annotate | Download | only in builderTemplate
      1 <project default="run">
      2 
      3 	<target name="run">
      4 		<ant antfile="build.xml" target="init" />
      5 		<antcall target="buildAll" />
      6 		<antcall target="test" />
      7 		<antcall target="publish" />
      8 		<antcall target="push" />
      9 	</target>
     10 
     11 	<target name="buildAll">
     12 		<!--add calls to build.xml here to build all components-->
     13 		
     14 		<!-- example
     15 		<ant antfile="build.xml" target="main">
     16 			<property name="builder" value="" />
     17 		</ant>
     18 		-->
     19 	
     20 	</target>
     21 
     22 	<target name="test" depends="init">
     23 		<property name="test.xml" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/test.xml" />
     24 		<!--
     25 		<ant antfile="${test.xml}">
     26 			<property name="tester" value="${basedir}/internalBuildTools/testConfigs/win32-local" />
     27 		</ant>
     28 		-->
     29 	</target>
     30 
     31 	<target name="publish" depends="init">
     32 		<property name="publish.xml" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/publish.xml" />
     33 
     34 		<property name="indexFileName" value="index.html" />
     35 		<property name="result" value="${buildDirectory}/${buildLabel}" />
     36 
     37 		<ant antfile="${publish.xml}" dir="${basedir}">
     38 			<property name="dropTokenList" value="%sdk%,%runtime%,%examples%,%tests%" />
     39 			<property name="isBuildTested" value="true" />
     40 		</ant>
     41 	</target>
     42 	
     43 	<target name="push" depends="init,pushftp,pushrsync">
     44 	</target>
     45 	
     46 	<target name="pushftp" if="ftppush">
     47 		<echo message="FTP to: ${remoteDirectory}/${buildLabel}"/>	
     48 	  	<ftp server="${ftpServer}"
     49        		userid="${ftpUser}"
     50 		      password="${ftpPassword}"
     51 			remotedir="${remoteDirectory}">
     52 		    <fileset dir="${buildDirectory}">
     53 				<include name="${buildLabel}/**"/>
     54 		    </fileset>
     55 		</ftp>
     56 		
     57 		<!-- There may not be anything in buildnotes. ftp won't create directory in that case. But we must have one. -->
     58 	  	<ftp server="${ftpServer}"
     59        		userid="${ftpUser}"
     60 		      password="${ftpPassword}"
     61 			action="mkdir"
     62 			remotedir="${remoteDirectory}/${buildLabel}/buildnotes">
     63 		</ftp>
     64 		
     65 	</target>
     66 		
     67 	<target name="pushrsync" if="rsyncpush"/>
     68 	
     69 </project>