carbideui/CarbideUIBuildScript/BuildScript/com.nokia.tools.s60.ide.releng.builder/build.xml
changeset 0 a44900f0f001
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/carbideui/CarbideUIBuildScript/BuildScript/com.nokia.tools.s60.ide.releng.builder/build.xml	Wed Jul 07 16:18:07 2010 +0530
@@ -0,0 +1,57 @@
+<project default="main">
+  <property file="../../build.properties" />
+	<property name="pde.build.scripts" value="../../BuildScript/${pde.script.location}" />
+
+	<target name="main" depends="checkArgs,init">
+		<echo> Builder Property Value: ${builder} </echo>
+		<ant antfile="build.xml" dir="${pde.build.scripts}">
+			<property name="builder" value="${basedir}/${component}" />
+			<property name="skipFetch" value="true" />
+		</ant>
+	</target>
+	
+	<target name="checkArgs" unless="builder">
+		<echo message="-Dbuilder=&lt;path&gt; required." />
+		<fail/>
+	</target>
+
+	<target name="init">
+		<available file="${buildDirectory}/label.properties" property="label.properties.exists" />
+		<antcall target="create.label.properties" />
+		<property file="${buildDirectory}/label.properties" />
+
+	</target>
+
+	<target name="create.label.properties" unless="label.properties.exists">
+		<mkdir dir="${buildDirectory}" />
+		<tstamp/>
+		<property name="date" value="${DSTAMP}" />
+		<property name="time" value="${TSTAMP}" />
+		<property name="timestamp" value="${date}${time}" />
+		<property name="buildType" value="I" />
+		<property name="buildId" value="${buildType}${date}" />
+
+		<!--this naming convention used by php scripts on download server-->
+		<property name="buildLabel" value="${buildType}-${buildId}-${timestamp}" />
+
+		<!--store the build label information in a file-->
+		<echo file="${buildDirectory}/label.properties" append="true" >
+		buildDirectory=${buildDirectory}
+		</echo>
+		<echo file="${buildDirectory}/label.properties" append="true" >
+		buildType=${buildType}
+		</echo>
+		<echo file="${buildDirectory}/label.properties" append="true" >
+		buildId=${buildId}
+		</echo>
+		<echo file="${buildDirectory}/label.properties" append="true" >
+		timestamp=${timestamp}
+		</echo>
+		<echo file="${buildDirectory}/label.properties" append="true" >
+		buildLabel=${buildLabel}
+		</echo>
+	</target>
+
+
+
+</project>
\ No newline at end of file