|
1 <?xml version="1.0"?> |
|
2 <project name="project" default="init" basedir="../.."> |
|
3 <property file="build.properties" /> |
|
4 <property name="packageDir" value="Downloads" /> |
|
5 |
|
6 |
|
7 <target name="init"> |
|
8 <tstamp /> |
|
9 <property name="timestamp" value="${DSTAMP}${TSTAMP}" /> |
|
10 |
|
11 <property name="root" value="${basedir}/workdir" /> |
|
12 <property name="buildRoot" value="${root}/${buildType}-${realBuildId}" /> |
|
13 <property name="buildLabel" value="${buildType}-${realBuildId}-${timestamp}" /> |
|
14 <property name="buildDirectory" value="${buildRoot}/src/eclipse" /> |
|
15 <antcall target="clean" /> |
|
16 <mkdir dir="${root}" /> |
|
17 <mkdir dir="${buildRoot}" /> |
|
18 </target> |
|
19 |
|
20 <target name="clean"> |
|
21 <delete dir="${root}" /> |
|
22 </target> |
|
23 |
|
24 <target name="run" depends="init"> |
|
25 <antcall target="build" /> |
|
26 <antcall target="package" /> |
|
27 <antcall target="publish" /> |
|
28 <available file="releases/CarbideUI_Theme${realBuildId}_${timestamp}.zip" property="buildCompletedWithErrors" /> |
|
29 <antcall target="clean" /> |
|
30 </target> |
|
31 |
|
32 <target name="build"> |
|
33 <java fork="true" dir="${basedir}/BuildScript/com.nokia.tools.s60.ide.releng.builder" classname="org.eclipse.equinox.launcher.Main"> |
|
34 <classpath> |
|
35 <pathelement location="${basedir}/BuildScript/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar" /> |
|
36 </classpath> |
|
37 |
|
38 <arg value="-application" /> |
|
39 <arg value="org.eclipse.ant.core.antRunner" /> |
|
40 <arg value="-f" /> |
|
41 <arg value="buildAll.xml" /> |
|
42 <arg value="run" /> |
|
43 <jvmarg value="-Djdk.home=${jdk.home}" /> |
|
44 <jvmarg value="-DbuildRoot=${buildRoot}" /> |
|
45 <jvmarg value="-DbuildType=${buildType}" /> |
|
46 <jvmarg value="-DbuildId=${realBuildId}" /> |
|
47 <jvmarg value="-DbuildLabel=${buildLabel}" /> |
|
48 <jvmarg value="-Dtimestamp=${timestamp}" /> |
|
49 <jvmarg value="-Drelease.dir=${release.dir}" /> |
|
50 <jvmarg value="-DforceContextQualifier=0" /> |
|
51 </java> |
|
52 </target> |
|
53 |
|
54 <target name="package"> |
|
55 <!-- theme edition --> |
|
56 <antcall target="all-in-one-prepare"> |
|
57 <param name="edition" value="theme" /> |
|
58 </antcall> |
|
59 <antcall target="all-in-one-win32"> |
|
60 <param name="edition" value="theme" /> |
|
61 </antcall> |
|
62 |
|
63 </target> |
|
64 |
|
65 <target name="all-in-one-prepare"> |
|
66 <delete dir="${buildDirectory}/CUITE" /> |
|
67 <mkdir dir="${buildDirectory}/CUITE" /> |
|
68 <mkdir dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" /> |
|
69 <exec dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" executable="unzip"> |
|
70 <arg line="-o -qq ${buildDirectory}/${buildLabel}/carbide.ui-${edition}-runtime-${realBuildId}.zip" /> |
|
71 </exec> |
|
72 <exec dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" executable="unzip"> |
|
73 <arg line="-o -qq ${buildRoot}/../../${packageDir}/emf.zip" /> |
|
74 </exec> |
|
75 <exec dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" executable="unzip"> |
|
76 <arg line="-o -qq ${buildRoot}/../../${packageDir}/gef.zip" /> |
|
77 </exec> |
|
78 </target> |
|
79 |
|
80 <target name="all-in-one-win32"> |
|
81 <exec dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" executable="unzip"> |
|
82 <arg line="-o -qq ${buildRoot}/../../${packageDir}/jre.zip" /> |
|
83 </exec> |
|
84 <exec dir="${buildDirectory}/CUITE/Carbide.ui Theme Edition" executable="unzip"> |
|
85 <arg line="-o -qq ${buildRoot}/../../${packageDir}/eclipse-platform.zip" /> |
|
86 </exec> |
|
87 |
|
88 <!-- replaces files --> |
|
89 <copy overwrite="true" todir="${buildDirectory}/CUITE/Carbide.ui Theme Edition"> |
|
90 <fileset dir="${buildRoot}/../../BuildScript/com.nokia.tools.s60.ide.releng.builder/replacements/win32/common" excludes="**/CVS/**" /> |
|
91 </copy> |
|
92 |
|
93 <copy overwrite="true" todir="${buildDirectory}/CUITE/Carbide.ui Theme Edition"> |
|
94 <fileset dir="${buildRoot}/../../BuildScript/com.nokia.tools.s60.ide.releng.builder/replacements/win32/${edition}" excludes="**/CVS/**" /> |
|
95 </copy> |
|
96 |
|
97 <zip destfile="${buildDirectory}/CarbideUI_Theme${realBuildId}_${timestamp}.zip" basedir="${buildDirectory}/CUITE" filesonly="false"> |
|
98 </zip> |
|
99 </target> |
|
100 |
|
101 <target name="publish"> |
|
102 <mkdir dir="${release.dir}" /> |
|
103 |
|
104 <delete failonerror="false"> |
|
105 <fileset dir="${release.dir}" includes="*.zip, *.exe" /> |
|
106 </delete> |
|
107 |
|
108 <move todir="${release.dir}"> |
|
109 <fileset dir="${buildDirectory}" includes="*CarbideUI_Theme${realBuildId}_${timestamp}.zip" /> |
|
110 </move> |
|
111 </target> |
|
112 </project> |