|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project name="FrameWork" default="cc" basedir="."> |
|
3 |
|
4 <!-- declare ant4eclipse --> |
|
5 <taskdef resource="net/sf/ant4eclipse/antlib.xml" /> |
|
6 |
|
7 <property name="workspace.path" value="." /> |
|
8 <property name="java.location" value="C:/APPS/j2sdk_1.5.0_12" /> |
|
9 <property name="destination.path" value="." /> |
|
10 |
|
11 <property name="basews" value="${ws}"/> |
|
12 <property name="baseos" value="${os}"/> |
|
13 <property name="basearch" value="${arch}"/> |
|
14 <property name="basenl" value="${nl}"/> |
|
15 |
|
16 <property name="feature.project.folder" location="com.nokia.s60tools.extensions.framework"/> |
|
17 <property name="feature.project.name" value="com.nokia.s60tools.extensions.framework"/> |
|
18 <property name="feature.name" value="framework"/> |
|
19 <property name="help.project.name" value="com.nokia.carbide.tool.help"/> |
|
20 <property name="help.jar.filename" value="${help.project.name}.jar"/> |
|
21 <property name="feature.name" value="Framework"/> |
|
22 |
|
23 <!-- Folder definitions --> |
|
24 |
|
25 <property name="carbide.int.folder" location="c:/Carbide_internal/plugins"/> |
|
26 <property name="carbide.dev.folder" location="c:/Carbide_development/plugins"/> |
|
27 <property name="carbide.adt.folder" location="c:/Carbide_ADT/plugins"/> |
|
28 <property name="test.sdk.folder" location="com.nokia.s60tools.sdk.tests"/> |
|
29 <property name="test.util.folder" location="com.nokia.s60tools.util.tests"/> |
|
30 |
|
31 <property name="binaries.folder" location="${feature.name}.binaries"/> |
|
32 <property name="reports.folder" location="reports"/> |
|
33 <property name="reports.emma" location="${reports.folder}/emma"/> |
|
34 <property name="instr.folder" location="instr"/> |
|
35 |
|
36 |
|
37 <!-- Target Plugin --> |
|
38 <target name="build.plugins" depends=""> |
|
39 |
|
40 <!--<buildPlugin workspace="${workspace.path}" targetPlatformLocation="${carbide.int.folder}" projectname="com.nokia.carbide.tool.help" destDir="${destination.path}" packageAsJar="true"> |
|
41 <javacLibraryCompiler> |
|
42 <compilerSettings debug="true" fork="true"/> |
|
43 </javacLibraryCompiler> |
|
44 </buildPlugin>--> |
|
45 |
|
46 <!-- Build MultiTestRunner feature --> |
|
47 <buildFeature workspace="${workspace.path}" |
|
48 targetPlatformLocation="${carbide.int.folder}" |
|
49 projectname="${feature.project.name}" |
|
50 buildPluginTarget="build.plugin" |
|
51 destDir="${destination.path}" /> |
|
52 </target> |
|
53 |
|
54 <target name="feature" depends=""> |
|
55 |
|
56 <copy todir="plugins"> |
|
57 <fileset dir="C:\hudson\jobs\Framework SDK\workspace\com.nokia.s60tools.sdk\plugins"/> |
|
58 </copy> |
|
59 <copy todir="plugins"> |
|
60 <fileset dir="C:\hudson\jobs\Framework UI\workspace\com.nokia.s60tools.ui\plugins"/> |
|
61 </copy> |
|
62 <copy todir="plugins"> |
|
63 <fileset dir="C:\hudson\jobs\Framework Util\workspace\com.nokia.s60tools.util\plugins"/> |
|
64 </copy> |
|
65 |
|
66 <!-- Copy the actual plug-ins to the carbide folders --> |
|
67 <copy todir="${carbide.int.folder}" failonerror="true" overwrite="true"> |
|
68 <fileset dir="plugins"/> |
|
69 <fileset dir="C:\hudson\jobs\Framework Testsupport\workspace\com.nokia.s60tools.testsupport\plugins"/> |
|
70 </copy> |
|
71 <copy todir="${carbide.dev.folder}" failonerror="true" overwrite="true"> |
|
72 <fileset dir="plugins"/> |
|
73 <fileset dir="C:\hudson\jobs\Framework Testsupport\workspace\com.nokia.s60tools.testsupport\plugins"/> |
|
74 </copy> |
|
75 <copy todir="${carbide.adt.folder}" failonerror="true" overwrite="true"> |
|
76 <fileset dir="plugins"/> |
|
77 <fileset dir="C:\hudson\jobs\Framework Testsupport\workspace\com.nokia.s60tools.testsupport\plugins"/> |
|
78 </copy> |
|
79 |
|
80 </target> |
|
81 <target name="create.zip"> |
|
82 |
|
83 <delete dir="${binaries.folder}/nightly_builds"/> |
|
84 <mkdir dir="${binaries.folder}/nightly_builds"/> |
|
85 |
|
86 <!-- Zip jars to ActiveObjectAnalyser.zip --> |
|
87 <tstamp> |
|
88 <format property="timestamp" pattern="dd-MM-yyyy" /> |
|
89 </tstamp> |
|
90 |
|
91 <zip destfile="${binaries.folder}/nightly_builds/${feature.name}-${timestamp}.zip" |
|
92 basedir="." |
|
93 includes="plugins/*, features/com.nokia*.*/"/> |
|
94 </target> |
|
95 |
|
96 <!-- Empty target to do nothing --> |
|
97 <target name="build.plugin"> |
|
98 </target> |
|
99 |
|
100 |
|
101 <target name="cc" depends="build.plugins, feature, create.zip" description="build.plugins, instrument, run unit tests and analyze code"/> |
|
102 </project> |