Home | History | Annotate | Download | only in builderTemplate
      1 <project default="main">
      2 
      3 	<property name="pde.build.scripts"	value="${eclipse.pdebuild.scripts}"/>
      4 	<property name="buildDirectory" location="${basedir}/src" />	
      5 
      6 	<target name="main" depends="checkArgs,init">
      7 		<ant antfile="build.xml" dir="${pde.build.scripts}" />
      8 	</target>
      9 	
     10 	<target name="checkArgs" unless="builder">
     11 		<echo message="-Dbuilder=&lt;path&gt; required." />
     12 		<fail/>
     13 	</target>
     14 
     15 	<target name="init">
     16 		<touch file="${user.home}/.cvspass" />
     17 		<available file="${buildDirectory}/label.properties" property="label.properties.exists" />
     18 		<antcall target="create.label.properties" />
     19 		<property file="${buildDirectory}/label.properties" />
     20 	</target>
     21 
     22 	<target name="create.label.properties" unless="label.properties.exists">
     23 		<mkdir dir="${buildDirectory}" />
     24 		<tstamp/>
     25 		<property name="date" value="${DSTAMP}" />
     26 		<property name="time" value="${TSTAMP}" />
     27 		<property name="timestamp" value="${date}${time}" />
     28 		<property name="buildType" value="I" />
     29 		<property name="buildId" value="${buildType}${date}" />
     30 
     31 		<!--this naming convention used by php scripts on download server-->
     32 		<property name="buildLabel" value="${buildType}-${buildId}-${timestamp}" />
     33 
     34 		<!--store the build label information in a file-->
     35 		<echo file="${buildDirectory}/label.properties" append="true" >
     36 		buildDirectory=${buildDirectory}
     37 		</echo>
     38 		<echo file="${buildDirectory}/label.properties" append="true" >
     39 		buildType=${buildType}
     40 		</echo>
     41 		<echo file="${buildDirectory}/label.properties" append="true" >
     42 		buildId=${buildId}
     43 		</echo>
     44 		<echo file="${buildDirectory}/label.properties" append="true" >
     45 		timestamp=${timestamp}
     46 		</echo>
     47 		<echo file="${buildDirectory}/label.properties" append="true" >
     48 		buildLabel=${buildLabel}
     49 		</echo>
     50 	</target>
     51 
     52 
     53 
     54 </project>