author | vasuds@2INL03378.NOE.Nokia.com |
Wed, 07 Jul 2010 16:18:07 +0530 | |
changeset 0 | a44900f0f001 |
permissions | -rw-r--r-- |
0
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
1 |
<project default="main"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
2 |
<property file="../../build.properties" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
3 |
<property name="pde.build.scripts" value="../../BuildScript/${pde.script.location}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
4 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
5 |
<target name="main" depends="checkArgs,init"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
6 |
<echo> Builder Property Value: ${builder} </echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
7 |
<ant antfile="build.xml" dir="${pde.build.scripts}"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
8 |
<property name="builder" value="${basedir}/${component}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
9 |
<property name="skipFetch" value="true" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
10 |
</ant> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
11 |
</target> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
12 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
13 |
<target name="checkArgs" unless="builder"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
14 |
<echo message="-Dbuilder=<path> required." /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
15 |
<fail/> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
16 |
</target> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
17 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
18 |
<target name="init"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
19 |
<available file="${buildDirectory}/label.properties" property="label.properties.exists" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
20 |
<antcall target="create.label.properties" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
21 |
<property file="${buildDirectory}/label.properties" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
22 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
23 |
</target> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
24 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
25 |
<target name="create.label.properties" unless="label.properties.exists"> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
26 |
<mkdir dir="${buildDirectory}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
27 |
<tstamp/> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
28 |
<property name="date" value="${DSTAMP}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
29 |
<property name="time" value="${TSTAMP}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
30 |
<property name="timestamp" value="${date}${time}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
31 |
<property name="buildType" value="I" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
32 |
<property name="buildId" value="${buildType}${date}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
33 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
34 |
<!--this naming convention used by php scripts on download server--> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
35 |
<property name="buildLabel" value="${buildType}-${buildId}-${timestamp}" /> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
36 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
37 |
<!--store the build label information in a file--> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
38 |
<echo file="${buildDirectory}/label.properties" append="true" > |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
39 |
buildDirectory=${buildDirectory} |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
40 |
</echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
41 |
<echo file="${buildDirectory}/label.properties" append="true" > |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
42 |
buildType=${buildType} |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
43 |
</echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
44 |
<echo file="${buildDirectory}/label.properties" append="true" > |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
45 |
buildId=${buildId} |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
46 |
</echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
47 |
<echo file="${buildDirectory}/label.properties" append="true" > |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
48 |
timestamp=${timestamp} |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
49 |
</echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
50 |
<echo file="${buildDirectory}/label.properties" append="true" > |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
51 |
buildLabel=${buildLabel} |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
52 |
</echo> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
53 |
</target> |
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
54 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
55 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
56 |
|
a44900f0f001
Carbide.ui source under EPL for ver3.0
vasuds@2INL03378.NOE.Nokia.com
parents:
diff
changeset
|
57 |
</project> |