1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="org.eclipse.platform.launchers" default="build.update.jar" basedir=".">
5 <property name="feature.destination" value="${basedir}"/>
6 <property name="p2.build.repo" value="file:${buildDirectory}/buildRepo"/>
7 <condition property="p2.publish.parts" value="true" >
8 <istrue value="${p2.gathering}"/>
12 <target name="all.plugins" depends="init">
14 <target name="all.features" depends="init">
16 <target name="update.feature" depends="init">
19 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
22 <target name="children" if="include.children">
23 <antcall target="all.children"/>
26 <target name="build.jars" depends="init" description="Build all the jars for the feature: org.eclipse.platform.launchers.">
29 <target name="build.sources" depends="init">
32 <target name="build.zips" depends="init">
35 <target name="build.update.jar" depends="init" description="Build the feature jar of: org.eclipse.platform.launchers for an update site.">
38 <target name="publish.bin.parts" depends="init" if="p2.publish.parts">
39 <eclipse.gatherFeature
40 metadataRepository="${p2.build.repo}"
41 artifactRepository="${p2.build.repo}"
42 buildResultFolder="${basedir}"
43 baseDirectory="${basedir}"
47 <target name="gather.bin.parts" depends="init" if="feature.base">
48 <subant target="rootFiles${os}_${ws}_${arch}" buildpath="." failonerror="false" inheritall="true"/>
51 <target name="rootFileswin32_win32_x86">
52 <mkdir dir="${feature.base}/win32.win32.x86/${collectingFolder}"/>
53 <copy todir="${feature.base}/win32.win32.x86/${collectingFolder}" failonerror="true" overwrite="true">
54 <fileset dir="${basedir}/bin/win32/win32/x86">
55 <include name="launcher.exe"/>
58 <chmod perm="755" dir="${feature.base}/win32.win32.x86/${collectingFolder}" includes="launcher.exe" />
61 <target name="rootFileswin32_win32_x86_64">
62 <mkdir dir="${feature.base}/win32.win32.x86_64/${collectingFolder}"/>
63 <copy todir="${feature.base}/win32.win32.x86_64/${collectingFolder}" failonerror="true" overwrite="true">
64 <fileset dir="${basedir}/bin/win32/win32/x86_64">
65 <include name="launcher.exe"/>
68 <chmod perm="755" dir="${feature.base}/win32.win32.x86_64/${collectingFolder}" includes="launcher.exe" />
71 <target name="rootFileswin32_win32_ia64">
72 <mkdir dir="${feature.base}/win32.win32.ia64/${collectingFolder}"/>
73 <copy todir="${feature.base}/win32.win32.ia64/${collectingFolder}" failonerror="true" overwrite="true">
74 <fileset dir="${basedir}/contributed/win32/win32/ia64">
75 <include name="launcher.exe"/>
78 <chmod perm="755" dir="${feature.base}/win32.win32.ia64/${collectingFolder}" includes="launcher.exe" />
81 <target name="rootFileswin32_wpf_x86">
82 <mkdir dir="${feature.base}/win32.wpf.x86/${collectingFolder}"/>
83 <copy todir="${feature.base}/win32.wpf.x86/${collectingFolder}/" failonerror="true" overwrite="true">
84 <fileset dir="${basedir}/bin/wpf/win32/x86">
85 <include name="launcher.exe"/>
88 <chmod perm="755" dir="${feature.base}/win32.wpf.x86/${collectingFolder}" includes="launcher.exe" />
91 <target name="rootFilesmacosx_carbon_ppc">
92 <mkdir dir="${feature.base}/macosx.carbon.ppc/${collectingFolder}"/>
93 <copy todir="${feature.base}/macosx.carbon.ppc/${collectingFolder}" failonerror="true" overwrite="true">
94 <fileset dir="${basedir}/bin/carbon/macosx/ppc" includes="**" />
96 <chmod perm="755" dir="${feature.base}/macosx.carbon.ppc/${collectingFolder}" includes="${launcherName}" />
97 <chmod perm="755" dir="${feature.base}/macosx.carbon.ppc/${collectingFolder}" includes="Eclipse.app/Contents/MacOS/launcher" />
99 <target name="rootFilesmacosx_carbon_x86">
100 <mkdir dir="${feature.base}/macosx.carbon.x86/${collectingFolder}"/>
101 <copy todir="${feature.base}/macosx.carbon.x86/${collectingFolder}" failonerror="true" overwrite="true">
102 <fileset dir="${basedir}/bin/carbon/macosx/x86" includes="**" />
104 <chmod perm="755" dir="${feature.base}/macosx.carbon.x86/${collectingFolder}" includes="${launcherName}" />
105 <chmod perm="755" dir="${feature.base}/macosx.carbon.x86/${collectingFolder}" includes="Eclipse.app/Contents/MacOS/launcher" />
107 <target name="rootFilesmacosx_cocoa_ppc">
108 <mkdir dir="${feature.base}/macosx.cocoa.ppc/${collectingFolder}"/>
109 <copy todir="${feature.base}/macosx.cocoa.ppc/${collectingFolder}" failonerror="true" overwrite="true">
110 <fileset dir="${basedir}/bin/cocoa/macosx/ppc" includes="**" />
112 <chmod perm="755" dir="${feature.base}/macosx.cocoa.ppc/${collectingFolder}" includes="${launcherName}" />
113 <chmod perm="755" dir="${feature.base}/macosx.cocoa.ppc/${collectingFolder}" includes="Eclipse.app/Contents/MacOS/launcher" />
115 <target name="rootFilesmacosx_cocoa_x86">
116 <mkdir dir="${feature.base}/macosx.cocoa.x86/${collectingFolder}"/>
117 <copy todir="${feature.base}/macosx.cocoa.x86/${collectingFolder}" failonerror="true" overwrite="true">
118 <fileset dir="${basedir}/bin/cocoa/macosx/x86" includes="**" />
120 <chmod perm="755" dir="${feature.base}/macosx.cocoa.x86/${collectingFolder}" includes="${launcherName}" />
121 <chmod perm="755" dir="${feature.base}/macosx.cocoa.x86/${collectingFolder}" includes="Eclipse.app/Contents/MacOS/launcher" />
123 <target name="rootFilesmacosx_cocoa_x86_64">
124 <mkdir dir="${feature.base}/macosx.cocoa.x86_64/${collectingFolder}"/>
125 <copy todir="${feature.base}/macosx.cocoa.x86_64/${collectingFolder}" failonerror="true" overwrite="true">
126 <fileset dir="${basedir}/bin/cocoa/macosx/x86_64" includes="**" />
128 <chmod perm="755" dir="${feature.base}/macosx.cocoa.x86_64/${collectingFolder}" includes="${launcherName}" />
129 <chmod perm="755" dir="${feature.base}/macosx.cocoa.x86_64/${collectingFolder}" includes="Eclipse.app/Contents/MacOS/launcher" />
131 <target name="rootFileslinux_gtk_x86">
132 <mkdir dir="${feature.base}/linux.gtk.x86/${collectingFolder}"/>
133 <copy todir="${feature.base}/linux.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
134 <fileset dir="${basedir}/bin/gtk/linux/x86" includes="**" />
135 <fileset dir="${basedir}/gtk_root" includes="**" />
137 <chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="launcher" />
139 <target name="rootFileslinux_gtk_ppc">
140 <mkdir dir="${feature.base}/linux.gtk.ppc/${collectingFolder}"/>
141 <copy todir="${feature.base}/linux.gtk.ppc/${collectingFolder}" failonerror="true" overwrite="true">
142 <fileset dir="${basedir}/bin/gtk/linux/ppc" includes="**" />
143 <fileset dir="${basedir}/gtk_root" includes="**" />
145 <chmod perm="755" dir="${feature.base}/linux.gtk.ppc/${collectingFolder}" includes="launcher" />
147 <target name="rootFileslinux_gtk_ppc64">
148 <mkdir dir="${feature.base}/linux.gtk.ppc64/${collectingFolder}"/>
149 <copy todir="${feature.base}/linux.gtk.ppc64/${collectingFolder}" failonerror="true" overwrite="true">
150 <fileset dir="${basedir}/bin/gtk/linux/ppc64" includes="**" />
151 <fileset dir="${basedir}/gtk_root" includes="**" />
153 <chmod perm="755" dir="${feature.base}/linux.gtk.ppc64/${collectingFolder}" includes="launcher" />
155 <target name="rootFilesaix_gtk_ppc64">
156 <mkdir dir="${feature.base}/aix.gtk.ppc64/${collectingFolder}"/>
157 <copy todir="${feature.base}/aix.gtk.ppc64/${collectingFolder}" failonerror="true" overwrite="true">
158 <fileset dir="${basedir}/bin/gtk/aix/ppc64" includes="**" />
159 <fileset dir="${basedir}/gtk_root" includes="**" />
161 <chmod perm="755" dir="${feature.base}/aix.gtk.ppc64/${collectingFolder}" includes="launcher" />
163 <target name="rootFilesaix_gtk_ppc">
164 <mkdir dir="${feature.base}/aix.gtk.ppc/${collectingFolder}"/>
165 <copy todir="${feature.base}/aix.gtk.ppc/${collectingFolder}" failonerror="true" overwrite="true">
166 <fileset dir="${basedir}/bin/gtk/aix/ppc" includes="**" />
167 <fileset dir="${basedir}/gtk_root" includes="**" />
169 <chmod perm="755" dir="${feature.base}/aix.gtk.ppc/${collectingFolder}" includes="launcher" />
171 <target name="rootFileslinux_gtk_x86_64">
172 <mkdir dir="${feature.base}/linux.gtk.x86_64/${collectingFolder}"/>
173 <copy todir="${feature.base}/linux.gtk.x86_64/${collectingFolder}" failonerror="true" overwrite="true">
174 <fileset dir="${basedir}/bin/gtk/linux/x86_64" includes="**" />
175 <fileset dir="${basedir}/gtk_root" includes="**" />
177 <chmod perm="755" dir="${feature.base}/linux.gtk.x86_64/${collectingFolder}" includes="launcher" />
179 <target name="rootFileslinux_gtk_ia64">
180 <mkdir dir="${feature.base}/linux.gtk.ia64/${collectingFolder}"/>
181 <copy todir="${feature.base}/linux.gtk.ia64/${collectingFolder}" failonerror="true" overwrite="true">
183 <chmod perm="755" dir="${feature.base}/linux.gtk.ia64/${collectingFolder}" includes="launcher" />
185 <target name="rootFileslinux_gtk_s390x">
186 <mkdir dir="${feature.base}/linux.gtk.s390x/${collectingFolder}"/>
187 <copy todir="${feature.base}/linux.gtk.s390x/${collectingFolder}" failonerror="true" overwrite="true">
188 <fileset dir="${basedir}/contributed/gtk/linux/s390x" includes="**" />
189 <fileset dir="${basedir}/gtk_root" includes="**" />
191 <chmod perm="755" dir="${feature.base}/linux.gtk.s390x/${collectingFolder}" includes="launcher" />
193 <target name="rootFileslinux_gtk_s390">
194 <mkdir dir="${feature.base}/linux.gtk.s390/${collectingFolder}"/>
195 <copy todir="${feature.base}/linux.gtk.s390/${collectingFolder}" failonerror="true" overwrite="true">
196 <fileset dir="${basedir}/contributed/gtk/linux/s390" includes="**" />
197 <fileset dir="${basedir}/gtk_root" includes="**" />
199 <chmod perm="755" dir="${feature.base}/linux.gtk.s390/${collectingFolder}" includes="launcher" />
201 <target name="rootFileslinux_motif_x86">
202 <mkdir dir="${feature.base}/linux.motif.x86/${collectingFolder}"/>
203 <copy todir="${feature.base}/linux.motif.x86/${collectingFolder}" failonerror="true" overwrite="true">
204 <fileset dir="${basedir}/bin/motif/linux/x86" includes="**" />
205 <fileset dir="${basedir}/motif_root" includes="**" />
207 <chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="libXm.so.2" />
208 <chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="launcher" />
210 <target name="rootFilessolaris_gtk_sparc">
211 <mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
212 <copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
213 <fileset dir="${basedir}/bin/gtk/solaris/sparc" includes="**" />
215 <chmod perm="755" dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" includes="launcher" />
217 <target name="rootFilessolaris_gtk_x86">
218 <mkdir dir="${feature.base}/solaris.gtk.x86/${collectingFolder}"/>
219 <copy todir="${feature.base}/solaris.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
220 <fileset dir="${basedir}/bin/gtk/solaris/x86" includes="**" />
222 <chmod perm="755" dir="${feature.base}/solaris.gtk.x86/${collectingFolder}" includes="launcher" />
224 <target name="rootFilessolaris_motif_sparc">
225 <mkdir dir="${feature.base}/solaris.motif.sparc/${collectingFolder}"/>
226 <copy todir="${feature.base}/solaris.motif.sparc/${collectingFolder}" failonerror="true" overwrite="true">
227 <fileset dir="${basedir}/contributed/motif/solaris/sparc" includes="**" />
229 <chmod perm="755" dir="${feature.base}/solaris.motif.sparc/${collectingFolder}" includes="launcher" />
231 <target name="rootFilesaix_motif_ppc">
232 <mkdir dir="${feature.base}/aix.motif.ppc/${collectingFolder}"/>
233 <copy todir="${feature.base}/aix.motif.ppc/${collectingFolder}" failonerror="true" overwrite="true">
234 <fileset dir="${basedir}/bin/motif/aix/ppc" includes="**" />
236 <chmod perm="755" dir="${feature.base}/aix.motif.ppc/${collectingFolder}" includes="launcher" />
238 <target name="rootFileshpux_motif_PA_RISC">
239 <mkdir dir="${feature.base}/hpux.motif.PA_RISC/${collectingFolder}"/>
240 <copy todir="${feature.base}/hpux.motif.PA_RISC/${collectingFolder}" failonerror="true" overwrite="true">
241 <fileset dir="${basedir}/bin/motif/hpux/PA_RISC" includes="**" />
243 <chmod perm="755" dir="${feature.base}/hpux.motif.PA_RISC/${collectingFolder}" includes="launcher" />
245 <target name="rootFileshpux_motif_ia64">
246 <mkdir dir="${feature.base}/hpux.motif.ia64/${collectingFolder}"/>
247 <copy todir="${feature.base}/hpux.motif.ia64/${collectingFolder}" failonerror="true" overwrite="true">
249 <chmod perm="755" dir="${feature.base}/hpux.motif.ia64/${collectingFolder}" includes="launcher" />
251 <target name="rootFileshpux_motif_ia64_32">
252 <mkdir dir="${feature.base}/hpux.motif.ia64_32/${collectingFolder}"/>
253 <copy todir="${feature.base}/hpux.motif.ia64_32/${collectingFolder}" failonerror="true" overwrite="true">
254 <fileset dir="${basedir}/bin/motif/hpux/ia64_32" includes="**" />
256 <chmod perm="755" dir="${feature.base}/hpux.motif.ia64_32/${collectingFolder}" includes="launcher" />
258 <target name="rootFileshpux_gtk_ia64_32">
259 <mkdir dir="${feature.base}/hpux.gtk.ia64_32/${collectingFolder}"/>
260 <copy todir="${feature.base}/hpux.gtk.ia64_32/${collectingFolder}" failonerror="true" overwrite="true">
261 <fileset dir="${basedir}/bin/gtk/hpux/ia64_32" includes="**" />
263 <chmod perm="755" dir="${feature.base}/hpux.gtk.ia64_32/${collectingFolder}" includes="launcher" />
265 <target name="rootFilesqnx_photon_x86">
266 <mkdir dir="${feature.base}/qnx.photon.x86/${collectingFolder}"/>
267 <copy todir="${feature.base}/qnx.photon.x86/${collectingFolder}" failonerror="true" overwrite="true">
268 <fileset dir="${basedir}/bin/photon/qnx/x86" includes="**" />
270 <chmod perm="755" dir="${feature.base}/qnx.photon.x86/${collectingFolder}" includes="launcher" />
272 <target name="rootFilesgroup_group_group">
273 <antcall target="rootFileswin32_win32_x86"/>
274 <antcall target="rootFileswin32_wpf_x86"/>
275 <antcall target="rootFileswin32_win32_x86_64"/>
276 <antcall target="rootFileswin32_win32_ia64"/>
277 <antcall target="rootFilesmacosx_carbon_ppc"/>
278 <antcall target="rootFilesmacosx_carbon_x86"/>
279 <antcall target="rootFilesmacosx_cocoa_ppc"/>
280 <antcall target="rootFilesmacosx_cocoa_x86"/>
281 <antcall target="rootFileslinux_gtk_x86"/>
282 <antcall target="rootFileslinux_gtk_ppc"/>
283 <antcall target="rootFileslinux_gtk_ppc64"/>
284 <antcall target="rootFileslinux_gtk_x86_64"/>
285 <antcall target="rootFileslinux_gtk_ia64"/>
286 <antcall target="rootFileslinux_gtk_s390x"/>
287 <antcall target="rootFileslinux_motif_x86"/>
288 <antcall target="rootFilessolaris_gtk_sparc"/>
289 <antcall target="rootFilessolaris_gtk_x86"/>
290 <antcall target="rootFilessolaris_motif_sparc"/>
291 <antcall target="rootFilesaix_motif_ppc"/>
292 <antcall target="rootFilesaix_gtk_ppc64"/>
293 <antcall target="rootFilesaix_gtk_ppc"/>
294 <antcall target="rootFileshpux_motif_PA_RISC"/>
295 <antcall target="rootFileshpux_motif_ia64"/>
296 <antcall target="rootFileshpux_motif_ia64_32"/>
297 <antcall target="rootFileshpux_gtk_ia64_32"/>
298 <antcall target="rootFilesqnx_photon_x86"/>
301 <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: org.eclipse.platform.launchers.">
304 <target name="zip.sources" depends="init">
307 <target name="zip.logs" depends="init">
310 <target name="clean" depends="init" description="Clean the feature: org.eclipse.platform.launchers of all the zips, jars and logs created.">
313 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
316 <target name="gather.sources">
319 <target name="gather.logs" depends="init">