carbideui/CarbideUIBuildScript/BuildScript/com.nokia.tools.s60.ide.releng.builder/build.xml
changeset 0 a44900f0f001
equal deleted inserted replaced
-1:000000000000 0:a44900f0f001
       
     1 <project default="main">
       
     2   <property file="../../build.properties" />
       
     3 	<property name="pde.build.scripts" value="../../BuildScript/${pde.script.location}" />
       
     4 
       
     5 	<target name="main" depends="checkArgs,init">
       
     6 		<echo> Builder Property Value: ${builder} </echo>
       
     7 		<ant antfile="build.xml" dir="${pde.build.scripts}">
       
     8 			<property name="builder" value="${basedir}/${component}" />
       
     9 			<property name="skipFetch" value="true" />
       
    10 		</ant>
       
    11 	</target>
       
    12 	
       
    13 	<target name="checkArgs" unless="builder">
       
    14 		<echo message="-Dbuilder=&lt;path&gt; required." />
       
    15 		<fail/>
       
    16 	</target>
       
    17 
       
    18 	<target name="init">
       
    19 		<available file="${buildDirectory}/label.properties" property="label.properties.exists" />
       
    20 		<antcall target="create.label.properties" />
       
    21 		<property file="${buildDirectory}/label.properties" />
       
    22 
       
    23 	</target>
       
    24 
       
    25 	<target name="create.label.properties" unless="label.properties.exists">
       
    26 		<mkdir dir="${buildDirectory}" />
       
    27 		<tstamp/>
       
    28 		<property name="date" value="${DSTAMP}" />
       
    29 		<property name="time" value="${TSTAMP}" />
       
    30 		<property name="timestamp" value="${date}${time}" />
       
    31 		<property name="buildType" value="I" />
       
    32 		<property name="buildId" value="${buildType}${date}" />
       
    33 
       
    34 		<!--this naming convention used by php scripts on download server-->
       
    35 		<property name="buildLabel" value="${buildType}-${buildId}-${timestamp}" />
       
    36 
       
    37 		<!--store the build label information in a file-->
       
    38 		<echo file="${buildDirectory}/label.properties" append="true" >
       
    39 		buildDirectory=${buildDirectory}
       
    40 		</echo>
       
    41 		<echo file="${buildDirectory}/label.properties" append="true" >
       
    42 		buildType=${buildType}
       
    43 		</echo>
       
    44 		<echo file="${buildDirectory}/label.properties" append="true" >
       
    45 		buildId=${buildId}
       
    46 		</echo>
       
    47 		<echo file="${buildDirectory}/label.properties" append="true" >
       
    48 		timestamp=${timestamp}
       
    49 		</echo>
       
    50 		<echo file="${buildDirectory}/label.properties" append="true" >
       
    51 		buildLabel=${buildLabel}
       
    52 		</echo>
       
    53 	</target>
       
    54 
       
    55 
       
    56 
       
    57 </project>