0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<project name="com.symbian.smt.gui" default="build.jars" basedir=".">
|
|
3 |
|
|
4 |
<property name="basews" value="${ws}"/>
|
|
5 |
<property name="baseos" value="${os}"/>
|
|
6 |
<property name="basearch" value="${arch}"/>
|
|
7 |
<property name="basenl" value="${nl}"/>
|
|
8 |
|
|
9 |
<!-- Compiler settings. -->
|
|
10 |
<property name="javacFailOnError" value="false"/>
|
|
11 |
<property name="javacDebugInfo" value="on"/>
|
|
12 |
<property name="javacVerbose" value="false"/>
|
|
13 |
<property name="logExtension" value=".log"/>
|
|
14 |
<property name="compilerArg" value=""/>
|
|
15 |
<property name="javacSource" value="1.5"/>
|
|
16 |
<property name="javacTarget" value="1.5"/>
|
|
17 |
<path id="path_bootclasspath">
|
|
18 |
<fileset dir="${java.home}/lib">
|
|
19 |
<include name="*.jar"/>
|
|
20 |
</fileset>
|
|
21 |
</path>
|
|
22 |
<property name="bootclasspath" refid="path_bootclasspath"/>
|
|
23 |
<property name="bundleJavacSource" value="${javacSource}"/>
|
|
24 |
<property name="bundleJavacTarget" value="${javacTarget}"/>
|
|
25 |
<property name="bundleBootClasspath" value="${bootclasspath}"/>
|
|
26 |
|
|
27 |
<property name="reports.dir" value="${basedir}/report" />
|
|
28 |
<property name="coverage.dir" value="${reports.dir}/coverage" />
|
|
29 |
|
|
30 |
<!-- <property name="lib.dir" value="${basedir}/../shared/lib" /> -->
|
|
31 |
|
|
32 |
<target name="init">
|
|
33 |
<condition property="pluginTemp" value="${buildTempFolder}/plugins">
|
|
34 |
<isset property="buildTempFolder"/>
|
|
35 |
</condition>
|
|
36 |
<property name="pluginTemp" value="${basedir}"/>
|
|
37 |
<condition property="build.result.folder" value="${pluginTemp}/com.symbian.smt.gui">
|
|
38 |
<isset property="buildTempFolder"/>
|
|
39 |
</condition>
|
|
40 |
<property name="build.result.folder" value="${basedir}"/>
|
|
41 |
<property name="temp.folder" value="${basedir}/temp.folder"/>
|
|
42 |
<property name="plugin.destination" value="${release.folder}"/>
|
|
43 |
<property name="plugin.temp.destination" value="${basedir}/plugins.folder" />
|
|
44 |
|
|
45 |
<mkdir dir="${plugin.temp.destination}"/>
|
|
46 |
<mkdir dir="${plugin.destination}"/>
|
|
47 |
</target>
|
|
48 |
|
|
49 |
<target name="instrument.jars" depends="build.update.jar">
|
|
50 |
<mkdir dir="${coverage.dir}" />
|
|
51 |
<mkdir dir="${jars.instr.dir}" />
|
|
52 |
<emma>
|
|
53 |
<instr instrpath="${plugin.temp.destination}/com.symbian.smt.gui_${version}.jar" mode="overwrite" metadatafile="${coverage.dir}/smtgui_metadata.em"/>
|
|
54 |
</emma>
|
|
55 |
<copy file="${plugin.temp.destination}/com.symbian.smt.gui_${version}.jar" tofile="${jars.instr.dir}/com.symbian.smt.gui_${version}.jar"/>
|
|
56 |
</target>
|
|
57 |
|
|
58 |
|
|
59 |
<target name="build.update.jar" depends="init" description="Build the plug-in: com.symbian.smt.gui for an update site.">
|
|
60 |
<delete dir="${temp.folder}"/>
|
|
61 |
<mkdir dir="${temp.folder}"/>
|
|
62 |
<antcall target="build.jars"/>
|
|
63 |
<antcall target="gather.bin.parts">
|
|
64 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
65 |
</antcall>
|
|
66 |
|
|
67 |
<zip destfile="${plugin.temp.destination}/com.symbian.smt.gui_${version}.jar" basedir="${temp.folder}/com.symbian.smt.gui" filesonly="false" whenempty="skip" update="false"/>
|
|
68 |
|
|
69 |
<copy file="${plugin.temp.destination}/com.symbian.smt.gui_${version}.jar" tofile="${plugin.destination}/com.symbian.smt.gui_${version}.jar"/>
|
|
70 |
|
|
71 |
<!-- <copy todir="${plugin.destination}/lib">
|
|
72 |
<fileset dir="${basedir}/../shared/lib"/>
|
|
73 |
</copy> -->
|
|
74 |
|
|
75 |
<delete dir="${temp.folder}"/>
|
|
76 |
</target>
|
|
77 |
|
|
78 |
<target name="@dot" depends="init" unless="@dot" description="Create jar: com.symbian.smt.gui @dot.">
|
|
79 |
<delete dir="${temp.folder}/@dot.bin"/>
|
|
80 |
<mkdir dir="${temp.folder}/@dot.bin"/>
|
|
81 |
<path id="@dot.classpath">
|
|
82 |
<pathelement path="../shared/org.eclipse.ui_3.2.1.M20061108.jar"/>
|
|
83 |
<pathelement path="../shared/org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
|
|
84 |
<pathelement path="../shared/org.eclipse.osgi_3.2.2.R32x_v20070118.jar"/>
|
|
85 |
<pathelement path="../shared/org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
|
|
86 |
<pathelement path="../shared/org.eclipse.core.jobs_3.2.0.v20060603.jar"/>
|
|
87 |
<pathelement path="../shared/org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v20060907/runtime_registry_compatibility.jar"/>
|
|
88 |
<pathelement path="../shared/org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v20060907"/>
|
|
89 |
<pathelement path="../shared/org.eclipse.equinox.registry_3.2.1.R32x_v20060814.jar"/>
|
|
90 |
<pathelement path="../shared/org.apache.xerces_2.8.0.v200606131651/resolver.jar"/>
|
|
91 |
<pathelement path="../shared/org.apache.xerces_2.8.0.v200606131651/xercesImpl.jar"/>
|
|
92 |
<pathelement path="../shared/org.apache.xerces_2.8.0.v200606131651/xml-apis.jar"/>
|
|
93 |
<pathelement path="../shared/org.eclipse.equinox.preferences_3.2.1.R32x_v20060717.jar"/>
|
|
94 |
<pathelement path="../shared/org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v20060907/@dot"/>
|
|
95 |
<pathelement path="../shared/org.eclipse.core.contenttype_3.2.0.v20060603.jar"/>
|
|
96 |
<pathelement path="../shared/org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601.jar"/>
|
|
97 |
<pathelement path="../shared/org.eclipse.swt_3.2.2.v3236b.jar"/>
|
|
98 |
<pathelement path="../shared/org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar"/>
|
|
99 |
<pathelement path="../shared/org.eclipse.jface_3.2.2.M20061214-1200.jar"/>
|
|
100 |
<pathelement path="../shared/org.eclipse.core.commands_3.2.0.I20060605-1400.jar"/>
|
|
101 |
<pathelement path="../shared/org.eclipse.ui.workbench_3.2.2.M20070119-0800.jar"/>
|
|
102 |
<pathelement path="../shared/org.eclipse.ui.workbench.compatibility_3.2.0.I20060605-1400/@dot"/>
|
|
103 |
<pathelement path="../shared/org.eclipse.ui.workbench.compatibility_3.2.0.I20060605-1400/compatibility.jar"/>
|
|
104 |
<pathelement path="../shared/com.ibm.icu_3.4.5.20061213.jar"/>
|
|
105 |
<pathelement path="../shared/org.eclipse.help_3.2.2.R322_v20061213.jar"/>
|
|
106 |
<pathelement path="../shared/org.eclipse.core.expressions_3.2.2.r322_v20070109a.jar"/>
|
|
107 |
<pathelement path="../shared/org.eclipse.core.resources_3.2.2.R32x_v20061218.jar"/>
|
|
108 |
<pathelement path="../shared/org.eclipse.core.resources.compatibility_3.2.0.v20060603.jar"/>
|
|
109 |
<pathelement path="../shared/org.eclipse.core.resources.win32_3.2.0.v20060603.jar"/>
|
|
110 |
<pathelement path="../shared/org.eclipse.core.runtime.compatibility_3.1.100.v20060603.jar"/>
|
|
111 |
<pathelement path="../shared/org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar"/>
|
|
112 |
<pathelement path="../shared/org.eclipse.ant.core_3.1.100.v20060531.jar"/>
|
|
113 |
<pathelement path="../shared/org.eclipse.core.variables_3.1.100.v20060605.jar"/>
|
|
114 |
<pathelement path="../shared/org.eclipse.core.filesystem_1.0.0.v20060603.jar"/>
|
|
115 |
<pathelement path="../shared/org.eclipse.core.filesystem.win32.x86_1.0.0.v20060603.jar"/>
|
|
116 |
<pathelement path="../shared/org.eclipse.ui.console_3.1.100.v20060605.jar"/>
|
|
117 |
<pathelement path="../shared/org.eclipse.jface.text_3.2.2.r322_v20070104.jar"/>
|
|
118 |
<pathelement path="../shared/org.eclipse.text_3.2.0.v20060605-1400.jar"/>
|
|
119 |
<pathelement path="../shared/org.eclipse.ui.workbench.texteditor_3.2.0.v20060605-1400.jar"/>
|
|
120 |
<pathelement path="../shared/org.eclipse.ui.editors_3.2.1.r321_v20060721.jar"/>
|
|
121 |
<pathelement path="../shared/org.eclipse.ui.ide_3.2.1.M20060915-1030.jar"/>
|
|
122 |
<pathelement path="../shared/org.eclipse.ui.win32_3.2.0.I20060605-1400.jar"/>
|
|
123 |
<pathelement path="../shared/org.eclipse.ui.views_3.2.1.M20060906-0800.jar"/>
|
|
124 |
<pathelement path="../shared/org.eclipse.update.core_3.2.3.R32x_v20070118.jar"/>
|
|
125 |
<pathelement path="../shared/org.eclipse.update.core.win32_3.2.2.R32x_v20061214.jar"/>
|
|
126 |
<pathelement path="../shared/org.eclipse.update.ui_3.2.2.R32x_v20070111.jar"/>
|
|
127 |
<pathelement path="../shared/org.eclipse.ui.forms_3.2.0.v20060602.jar"/>
|
|
128 |
<pathelement path="../shared/org.eclipse.core.filebuffers_3.2.1.r321_v20060721.jar"/>
|
|
129 |
<pathelement path="../shared/org.eclipse.ui.navigator_3.3.2.M20080207-0800.jar"/>
|
|
130 |
<!-- <fileset dir="${lib.dir}">
|
|
131 |
<include name="*.jar"/>
|
|
132 |
</fileset> -->
|
|
133 |
</path>
|
|
134 |
<!-- compile the source code -->
|
|
135 |
<javac destdir="${temp.folder}/@dot.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" >
|
|
136 |
<compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
|
|
137 |
<classpath refid="@dot.classpath" />
|
|
138 |
<src path="src/" />
|
|
139 |
</javac>
|
|
140 |
<!-- Copy necessary resources -->
|
|
141 |
<copy todir="${temp.folder}/@dot.bin" failonerror="true" overwrite="false">
|
|
142 |
<fileset dir="src/" excludes="**/*.java, **/package.htm*" />
|
|
143 |
</copy>
|
|
144 |
<mkdir dir="${build.result.folder}"/>
|
|
145 |
<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
|
|
146 |
<fileset dir="${temp.folder}/@dot.bin" />
|
|
147 |
</copy>
|
|
148 |
<delete dir="${temp.folder}/@dot.bin"/>
|
|
149 |
</target>
|
|
150 |
|
|
151 |
<target name="src.zip" depends="init" unless="src.zip">
|
|
152 |
<mkdir dir="${build.result.folder}"/>
|
|
153 |
<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
|
|
154 |
<fileset dir="src/" includes="**/*.java" />
|
|
155 |
</zip>
|
|
156 |
</target>
|
|
157 |
|
|
158 |
<target name="build.jars" depends="init" description="Build all the jars for the plug-in: com.symbian.smt.gui.">
|
|
159 |
<available property="@dot" file="${build.result.folder}/@dot"/>
|
|
160 |
<antcall target="@dot"/>
|
|
161 |
</target>
|
|
162 |
|
|
163 |
<target name="build.sources" depends="init">
|
|
164 |
<available property="src.zip" file="${build.result.folder}/src.zip"/>
|
|
165 |
<antcall target="src.zip"/>
|
|
166 |
</target>
|
|
167 |
|
|
168 |
<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
|
|
169 |
<mkdir dir="${destination.temp.folder}/com.symbian.smt.gui"/>
|
|
170 |
<copy todir="${destination.temp.folder}/com.symbian.smt.gui" failonerror="true" overwrite="false">
|
|
171 |
<fileset dir="${build.result.folder}/@dot" includes="**" />
|
|
172 |
</copy>
|
|
173 |
<copy todir="${destination.temp.folder}/com.symbian.smt.gui" failonerror="true" overwrite="false">
|
|
174 |
<fileset dir="${basedir}" includes="META-INF/,plugin.xml,icons/" />
|
|
175 |
</copy>
|
|
176 |
</target>
|
|
177 |
|
|
178 |
<target name="build.zips" depends="init">
|
|
179 |
</target>
|
|
180 |
|
|
181 |
<target name="gather.sources" depends="init" if="destination.temp.folder">
|
|
182 |
<mkdir dir="${destination.temp.folder}/com.symbian.smt.gui"/>
|
|
183 |
<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.symbian.smt.gui" failonerror="false" overwrite="false"/>
|
|
184 |
</target>
|
|
185 |
|
|
186 |
<target name="gather.logs" depends="init" if="destination.temp.folder">
|
|
187 |
<mkdir dir="${destination.temp.folder}/com.symbian.smt.gui_0.0.1"/>
|
|
188 |
<copy file="${temp.folder}/@dot.bin${logExtension}" todir="${destination.temp.folder}/com.symbian.smt.gui" failonerror="false" overwrite="false"/>
|
|
189 |
</target>
|
|
190 |
|
|
191 |
<target name="clean" depends="init" description="Clean the plug-in: com.symbian.smt.gui of all the zips, jars and logs created.">
|
|
192 |
<delete dir="${build.result.folder}/@dot"/>
|
|
193 |
<delete file="${build.result.folder}/src.zip"/>
|
|
194 |
<delete file="${plugin.destination}/com.symbian.smt.gui_${version}.jar"/>
|
|
195 |
<delete file="${plugin.destination}/com.symbian.smt.gui_${version}.jar"/>
|
|
196 |
<delete file="${plugin.temp.destination}/com.symbian.smt.gui_${version}.zip"/>
|
|
197 |
<delete dir="${plugin.temp.destination}" />
|
|
198 |
<delete dir="${temp.folder}"/>
|
|
199 |
</target>
|
|
200 |
|
|
201 |
<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.symbian.smt.gui.">
|
|
202 |
<delete dir="${temp.folder}"/>
|
|
203 |
<mkdir dir="${temp.folder}"/>
|
|
204 |
<antcall target="build.jars"/>
|
|
205 |
<antcall target="build.sources"/>
|
|
206 |
<antcall target="gather.bin.parts">
|
|
207 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
208 |
</antcall>
|
|
209 |
<antcall target="gather.sources">
|
|
210 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
211 |
</antcall>
|
|
212 |
<delete>
|
|
213 |
<fileset dir="${temp.folder}" includes="**/*.bin${logExtension}" />
|
|
214 |
</delete>
|
|
215 |
<zip destfile="${plugin.destination}/com.symbian.smt.gui_${version}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
|
|
216 |
<delete dir="${temp.folder}"/>
|
|
217 |
</target>
|
|
218 |
|
|
219 |
<target name="gather.results">
|
|
220 |
<copy file="${coverage.dir}\smtgui_metadata.em" tofile="${destination.results.folder}\coverage\smtgui_metadata.em"/>
|
|
221 |
</target>
|
|
222 |
|
|
223 |
</project>
|