|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project name="com.nokia.s60tools.imaker.tests.feature" default="build.update.jar" basedir="."> |
|
3 <property file="../common.properties" /> |
|
4 |
|
5 <taskdef resource="eclipseTasks.properties" classpath="pdebuild-myant.jar"/> |
|
6 <target name="init"> |
|
7 <property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/> |
|
8 <property name="feature.destination" value="${basedir}"/> |
|
9 <mkdir dir="${plugin.lib}"/> |
|
10 </target> |
|
11 |
|
12 <target name="all.plugins" depends="init"> |
|
13 <ant antfile="build.xml" dir="../com.nokia.s60tools.imaker" target="${target}"> |
|
14 <property name="arch" value="x86"/> |
|
15 <property name="ws" value="win32"/> |
|
16 <property name="os" value="win32"/> |
|
17 </ant> |
|
18 <ant antfile="build.xml" dir="../com.nokia.s60tools.imaker.tests" target="${target}"> |
|
19 <property name="arch" value="x86"/> |
|
20 <property name="ws" value="win32"/> |
|
21 <property name="os" value="win32"/> |
|
22 </ant> |
|
23 </target> |
|
24 <target name="all.features" depends="init"> |
|
25 </target> |
|
26 <target name="update.feature" depends="init"> |
|
27 </target> |
|
28 |
|
29 <target name="all.children" depends="init,all.features,all.plugins,update.feature"> |
|
30 </target> |
|
31 |
|
32 <target name="children" if="include.children"> |
|
33 <antcall target="all.children"/> |
|
34 </target> |
|
35 |
|
36 <target name="build.jars" depends="init" description="Build all the jars for the feature: com.nokia.s60tools.imaker.tests.feature."> |
|
37 <antcall target="all.children"> |
|
38 <param name="target" value="build.jars"/> |
|
39 </antcall> |
|
40 </target> |
|
41 |
|
42 <target name="build.sources" depends="init"> |
|
43 <antcall target="all.children"> |
|
44 <param name="target" value="build.sources"/> |
|
45 </antcall> |
|
46 </target> |
|
47 |
|
48 <target name="build.zips" depends="init"> |
|
49 <antcall target="all.children"> |
|
50 <param name="target" value="build.zips"/> |
|
51 </antcall> |
|
52 </target> |
|
53 |
|
54 <target name="build.update.jar" depends="clean, init" description="Build the feature jar of: com.nokia.s60tools.imaker.tests.feature for an update site."> |
|
55 <antcall target="all.children"> |
|
56 <param name="target" value="build.update.jar"/> |
|
57 </antcall> |
|
58 <property name="feature.base" value="${feature.temp.folder}"/> |
|
59 <delete dir="${feature.temp.folder}"/> |
|
60 <mkdir dir="${feature.temp.folder}"/> |
|
61 <antcall target="gather.bin.parts" inheritAll="false"> |
|
62 <param name="os" value="*"/> |
|
63 <param name="feature.base" value="${feature.temp.folder}"/> |
|
64 <param name="ws" value="*"/> |
|
65 <param name="arch" value="*"/> |
|
66 <param name="nl" value="*"/> |
|
67 </antcall> |
|
68 <jar destfile="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.jar" basedir="${feature.temp.folder}/features/com.nokia.s60tools.imaker.tests.feature_${plugin.version}"/> |
|
69 <delete dir="${feature.temp.folder}"/> |
|
70 </target> |
|
71 |
|
72 <target name="gather.bin.parts" depends="init" if="feature.base"> |
|
73 <mkdir dir="${feature.base}/features/com.nokia.s60tools.imaker.tests.feature_${plugin.version}"/> |
|
74 <antcall target="children"> |
|
75 <param name="target" value="gather.bin.parts"/> |
|
76 <param name="destination.temp.folder" value="${feature.base}/plugins"/> |
|
77 </antcall> |
|
78 <copy todir="${feature.base}/features/com.nokia.s60tools.imaker.tests.feature_${plugin.version}" failonerror="true" overwrite="false"> |
|
79 <fileset dir="${basedir}"> |
|
80 <include name="feature.xml"/> |
|
81 </fileset> |
|
82 </copy> |
|
83 </target> |
|
84 <target name="rootFiles*_*_*"> |
|
85 </target> |
|
86 <target name="rootFilesgroup_group_group"> |
|
87 <antcall target="rootFiles*_*_*"/> |
|
88 </target> |
|
89 |
|
90 <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: com.nokia.s60tools.imaker.tests.feature."> |
|
91 <delete dir="${feature.temp.folder}"/> |
|
92 <mkdir dir="${feature.temp.folder}"/> |
|
93 <antcall target="gather.bin.parts"> |
|
94 <param name="feature.base" value="${feature.temp.folder}"/> |
|
95 <param name="os" value="*"/> |
|
96 <param name="arch" value="*"/> |
|
97 <param name="ws" value="*"/> |
|
98 <param name="nl" value="*"/> |
|
99 <param name="include.children" value="true"/> |
|
100 </antcall> |
|
101 <zip destfile="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/> |
|
102 <delete dir="${feature.temp.folder}"/> |
|
103 </target> |
|
104 |
|
105 <target name="zip.sources" depends="init"> |
|
106 <delete dir="${feature.temp.folder}"/> |
|
107 <mkdir dir="${feature.temp.folder}"/> |
|
108 <antcall target="all.children"> |
|
109 <param name="target" value="gather.sources"/> |
|
110 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/com.nokia.s60tools.imaker.tests.feature.source_${plugin.version}/src"/> |
|
111 <param name="include.children" value="true"/> |
|
112 </antcall> |
|
113 <zip destfile="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/> |
|
114 <delete dir="${feature.temp.folder}"/> |
|
115 </target> |
|
116 |
|
117 <target name="zip.logs" depends="init"> |
|
118 <delete dir="${feature.temp.folder}"/> |
|
119 <mkdir dir="${feature.temp.folder}"/> |
|
120 <antcall target="all.children" inheritAll="false"> |
|
121 <param name="target" value="gather.logs"/> |
|
122 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/> |
|
123 <param name="include.children" value="true"/> |
|
124 </antcall> |
|
125 <zip destfile="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/> |
|
126 <delete dir="${feature.temp.folder}"/> |
|
127 </target> |
|
128 |
|
129 <target name="clean" depends="init" description="Clean the feature: com.nokia.s60tools.imaker.tests.feature of all the zips, jars and logs created."> |
|
130 <delete file="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.jar"/> |
|
131 <delete file="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.bin.dist.zip"/> |
|
132 <delete file="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.log.zip"/> |
|
133 <delete file="${feature.destination}/com.nokia.s60tools.imaker.tests.feature_${plugin.version}.src.zip"/> |
|
134 <delete dir="${feature.temp.folder}"/> |
|
135 <antcall target="all.children"> |
|
136 <param name="target" value="clean"/> |
|
137 </antcall> |
|
138 </target> |
|
139 |
|
140 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> |
|
141 <eclipse.convertPath fileSystemPath="C:/dev/workspaces/eclipse-3.3.1/imaker_plugin/com.nokia.s60tools.imaker.tests.feature/" property="resourcePath"/> |
|
142 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> |
|
143 <antcall target="all.children"> |
|
144 <param name="target" value="refresh"/> |
|
145 </antcall> |
|
146 </target> |
|
147 <target name="gather.sources"> |
|
148 <antcall target="children"> |
|
149 <param name="target" value="gather.sources"/> |
|
150 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/com.nokia.s60tools.imaker.tests.feature.source_${plugin.version}/src"/> |
|
151 </antcall> |
|
152 </target> |
|
153 |
|
154 <target name="gather.logs" depends="init"> |
|
155 <mkdir dir="${feature.temp.folder}"/> |
|
156 <antcall target="all.children" inheritAll="false"> |
|
157 <param name="target" value="gather.logs"/> |
|
158 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/> |
|
159 </antcall> |
|
160 </target> |
|
161 |
|
162 </project> |