blob: 8b1afff63b61cb2dbcee429d1a0dcee25f2236c8 [file] [log] [blame]
Christophe Cornuf7e6d922005-04-07 19:51:12 +00001<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.eclipse.swt.gtk.linux.x86" default="build.jars" basedir=".">
3
4 <target name="init" depends="properties">
Grant Gayededc91782007-01-12 20:53:36 +00005 <property name="compilerArg" value=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +00006 <property name="ws" value="gtk"/>
7 <property name="os" value="linux"/>
8 <property name="arch" value="x86"/>
Billy Biggs71d9d6b2005-11-18 02:52:02 +00009 <property name="fragment" value="org.eclipse.swt.gtk.linux.x86"/>
Grant Gayedad1eb832006-08-10 18:22:03 +000010 <property name="version.suffix" value="3.3.0"/>
Veronika Irvine7316faf2005-10-28 16:34:11 +000011 <property name="full.name" value="${fragment}_${version.suffix}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000012 <property name="temp.folder" value="${basedir}/temp.folder"/>
13 <property name="plugin.destination" value="${basedir}"/>
14 <property name="build.result.folder" value="${basedir}"/>
15 <property name="destination" value="${basedir}"/>
16 <property name="plugindir" value="../org.eclipse.swt"/>
17 <property name="bootclasspath" value=""/>
sdimitro213cb6b2006-03-16 21:57:46 +000018 <property name="javacVerbose" value="false"/>
Grant Gayed1d2591f2006-03-27 18:51:16 +000019 <property name="logExtension" value=".xml"/>
Veronika Irvinebac9c682006-05-03 19:13:48 +000020 <property name="javacSource" value="1.3"/>
21 <property name="javacTarget" value="1.2"/>
22 <path id="path_bootclasspath">
23 <fileset dir="${java.home}/lib">
24 <include name="*.jar"/>
25 </fileset>
26 </path>
27 <property name="bootclasspath" refid="path_bootclasspath"/>
28 <condition property="bundleBootClasspath" value="${CDC-1.0/Foundation-1.0}">
29 <isset property="CDC-1.0/Foundation-1.0"/>
30 </condition>
31 <condition property="bundleBootClasspath" value="${J2SE-1.3}">
32 <isset property="J2SE-1.3"/>
33 </condition>
34 <property name="bundleJavacSource" value="${javacSource}"/>
35 <property name="bundleJavacTarget" value="${javacTarget}"/>
36 <property name="bundleBootClasspath" value="${bootclasspath}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000037 </target>
38
39 <target name="properties" if="eclipse.running">
40 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
41 </target>
42
43 <target name="build.update.jar" depends="init">
44 <delete dir="${temp.folder}"/>
45 <mkdir dir="${temp.folder}"/>
46 <antcall target="build.jars"/>
47 <antcall target="gather.bin.parts">
48 <param name="destination.temp.folder" value="${temp.folder}/"/>
49 </antcall>
50 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
51 <delete dir="${temp.folder}"/>
52 </target>
53
54 <target name="@dot" depends="init" unless="@dot" description="Create jar: @dot.">
55 <property name="destdir" value="${temp.folder}/@dot.bin"/>
56 <delete dir="${temp.folder}/@dot.bin"/>
57 <mkdir dir="${temp.folder}/@dot.bin"/>
Veronika Irvinebac9c682006-05-03 19:13:48 +000058 <javac destdir="${temp.folder}/@dot.bin" verbose="${javacVerbose}" debug="on" failonerror="no" classpath="${plugindir}/extra_jars/exceptions.jar" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}">
Christophe Cornuf7e6d922005-04-07 19:51:12 +000059 <src path="${plugindir}/Eclipse SWT/cairo/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000060 <src path="${plugindir}/Eclipse SWT/common/"/>
61 <src path="${plugindir}/Eclipse SWT/common_j2se/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000062 <src path="${plugindir}/Eclipse SWT/emulated/bidi/"/>
63 <src path="${plugindir}/Eclipse SWT/emulated/coolbar/"/>
64 <src path="${plugindir}/Eclipse SWT/gtk/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000065 <src path="${plugindir}/Eclipse SWT Accessibility/common/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000066 <src path="${plugindir}/Eclipse SWT Accessibility/gtk/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000067 <src path="${plugindir}/Eclipse SWT AWT/common/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000068 <src path="${plugindir}/Eclipse SWT AWT/gtk/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000069 <src path="${plugindir}/Eclipse SWT Browser/common/"/>
Grant Gayedf07e5b92007-01-25 18:28:11 +000070 <src path="${plugindir}/Eclipse SWT Mozilla/common/"/>
71 <src path="${plugindir}/Eclipse SWT Mozilla/gtk/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000072 <src path="${plugindir}/Eclipse SWT Custom Widgets/common/"/>
73 <src path="${plugindir}/Eclipse SWT Drag and Drop/common/"/>
74 <src path="${plugindir}/Eclipse SWT Drag and Drop/gtk/"/>
Billy Biggsd956a3d2005-09-24 03:28:59 +000075 <src path="${plugindir}/Eclipse SWT OpenGL/gtk/"/>
76 <src path="${plugindir}/Eclipse SWT OpenGL/glx/"/>
77 <src path="${plugindir}/Eclipse SWT OpenGL/common/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000078 <src path="${plugindir}/Eclipse SWT PI/cairo/"/>
79 <src path="${plugindir}/Eclipse SWT PI/common/"/>
80 <src path="${plugindir}/Eclipse SWT PI/common_j2se/"/>
81 <src path="${plugindir}/Eclipse SWT PI/gtk/"/>
82 <src path="${plugindir}/Eclipse SWT Mozilla/common/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000083 <src path="${plugindir}/Eclipse SWT Mozilla/gtk/"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +000084 <src path="${plugindir}/Eclipse SWT Printing/common/"/>
85 <src path="${plugindir}/Eclipse SWT Printing/gtk/"/>
86 <src path="${plugindir}/Eclipse SWT Program/cde/"/>
87 <src path="${plugindir}/Eclipse SWT Program/common/"/>
88 <src path="${plugindir}/Eclipse SWT Program/gnome/"/>
89 <src path="${plugindir}/Eclipse SWT Program/gtk/"/>
Silenio Quartif5005b42006-04-26 14:58:10 +000090 <src path="${plugindir}/Eclipse SWT Theme/gtk/"/>
Grant Gayed1d2591f2006-03-27 18:51:16 +000091 <compilerarg line="-log '${temp.folder}'/@dot.bin${logExtension}" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
Grant Gayededc91782007-01-12 20:53:36 +000092 <compilerarg line="${compilerArg}" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000093 </javac>
94 <property name="includes" value=""/>
95 <property name="excludes" value="**/*.java,**/library/,**/package.htm*"/>
96 <copy todir="${temp.folder}/@dot.bin">
Christophe Cornuf7e6d922005-04-07 19:51:12 +000097 <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000098 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="${includes}" excludes="${excludes}"/>
99 <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000100 <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi/" includes="${includes}" excludes="${excludes}"/>
101 <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar/" includes="${includes}" excludes="${excludes}"/>
102 <fileset dir="${plugindir}/Eclipse SWT/gtk/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000103 <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000104 <fileset dir="${plugindir}/Eclipse SWT Accessibility/gtk/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000105 <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000106 <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000107 <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="${includes}" excludes="${excludes}"/>
Grant Gayedf07e5b92007-01-25 18:28:11 +0000108 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="${includes}" excludes="${excludes}"/>
109 <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000110 <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="${includes}" excludes="${excludes}"/>
111 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="${includes}" excludes="${excludes}"/>
112 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/gtk/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000113 <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000114 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="${includes}" excludes="${excludes}"/>
Billy Biggsd956a3d2005-09-24 03:28:59 +0000115 <fileset dir="${plugindir}/Eclipse SWT OpenGL/gtk/" includes="${includes}" excludes="${excludes}"/>
116 <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="${includes}" excludes="${excludes}"/>
117 <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="${includes}" excludes="${excludes}"/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000118 <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="${includes}" excludes="${excludes}"/>
119 <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="${includes}" excludes="${excludes}"/>
120 <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="${includes}" excludes="${excludes}"/>
121 <fileset dir="${plugindir}/Eclipse SWT PI/gtk/" includes="${includes}" excludes="${excludes}"/>
122 <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="${includes}" excludes="${excludes}"/>
123 <fileset dir="${plugindir}/Eclipse SWT Printing/gtk/" includes="${includes}" excludes="${excludes}"/>
124 <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="${includes}" excludes="${excludes}"/>
125 <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="${includes}" excludes="${excludes}"/>
126 <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="${includes}" excludes="${excludes}"/>
127 <fileset dir="${plugindir}/Eclipse SWT Program/gtk/" includes="${includes}" excludes="${excludes}"/>
Silenio Quartif5005b42006-04-26 14:58:10 +0000128 <fileset dir="${plugindir}/Eclipse SWT Theme/gtk/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000129 </copy>
130
131 <mkdir dir="${build.result.folder}/@dot"/>
132 <copy todir="${build.result.folder}/@dot" failonerror="true">
133 <fileset dir="${temp.folder}/@dot.bin"/>
134 </copy>
135 <!-- prepare a jar file solely for the download target -->
136 <jar jarfile="${build.result.folder}/swt.jar" basedir="${temp.folder}/@dot.bin"/>
137 <delete dir="${temp.folder}/@dot.bin"/>
138 </target>
139
140 <target name="build.jars" depends="init">
141 <available property="@dot" file="${build.result.folder}/@dot"/>
142 <antcall target="@dot"/>
143 </target>
144
Billy Biggsd5d1b2d2005-11-18 04:56:26 +0000145 <target name="build.cfiles" depends="init">
146 <mkdir dir="${build.result.folder}/library"/>
147 <copy todir="${build.result.folder}/library">
148 <fileset dir="${plugindir}/Eclipse SWT/common/library"/>
149 <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/library"/>
150 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/library"/>
151 <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/library"/>
152 <fileset dir="${plugindir}/Eclipse SWT PI/cairo/library"/>
153 <fileset dir="${plugindir}/Eclipse SWT PI/gtk/library"/>
154 <fileset dir="${plugindir}/Eclipse SWT Program/cde/library"/>
155 <fileset dir="${plugindir}/Eclipse SWT Program/gnome/library"/>
156 </copy>
157 </target>
158
159 <target name="build.jnilibs" depends="build.cfiles">
160 <exec dir="${build.result.folder}/library" executable="sh">
161 <env key="OUTPUT_DIR" value="${build.result.folder}"/>
162 <arg line="${build.result.folder}/library/build.sh"/>
163 <arg line="install"/>
164 </exec>
165 </target>
166
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000167 <target name="src.zip" depends="init" unless="src.zip">
168 <mkdir dir="${build.result.folder}/"/>
169 <zip zipfile="${build.result.folder}/src.zip">
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000170 <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="**/*.java" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000171 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/>
172 <fileset dir="${plugindir}/Eclipse SWT/common/library/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000173 <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000174 <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi/" includes="**/*.java" excludes=""/>
175 <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar/" includes="**/*.java" excludes=""/>
176 <fileset dir="${plugindir}/Eclipse SWT/gtk/" includes="**/*.java" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000177 <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000178 <fileset dir="${plugindir}/Eclipse SWT Accessibility/gtk/" includes="**/*.java" excludes=""/>
179 <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="**/*.java" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000180 <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/" includes="**/*.java" excludes=""/>
Veronika Irvine977d6062005-04-28 21:24:43 +0000181 <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/library/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000182 <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/>
Grant Gayedf07e5b92007-01-25 18:28:11 +0000183 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="**/*.java" excludes=""/>
184 <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000185 <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="**/*.java" excludes=""/>
186 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="**/*.java" excludes=""/>
187 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/gtk/" includes="**/*.java" excludes=""/>
Veronika Irvineba8787c2005-06-20 21:32:54 +0000188 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000189 <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/library/"/>
190 <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="**/*.java" excludes=""/>
Billy Biggsd956a3d2005-09-24 03:28:59 +0000191 <fileset dir="${plugindir}/Eclipse SWT OpenGL/gtk/" includes="**/*.java" excludes=""/>
192 <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="**/*.java" excludes=""/>
193 <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/library/"/>
Billy Biggs6d3ce6c2005-11-09 20:59:15 +0000194 <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="**/*.java" excludes=""/>
Veronika Irvineba8787c2005-06-20 21:32:54 +0000195 <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000196 <fileset dir="${plugindir}/Eclipse SWT PI/cairo/library/"/>
197 <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="**/*.java" excludes=""/>
198 <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="**/*.java" excludes=""/>
Grant Gayed6ef19e92007-02-07 19:51:37 +0000199 <fileset dir="${plugindir}/Eclipse SWT PI/common/library/"/>
Veronika Irvineba8787c2005-06-20 21:32:54 +0000200 <fileset dir="${plugindir}/Eclipse SWT PI/gtk/" includes="**/*.java" excludes=""/>
Veronika Irvineb325d7b2005-04-29 14:30:24 +0000201 <fileset dir="${plugindir}/Eclipse SWT PI/gtk/library/"/>
202 <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="**/*.java" excludes=""/>
203 <fileset dir="${plugindir}/Eclipse SWT Printing/gtk/" includes="**/*.java" excludes=""/>
204 <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="**/*.java" excludes=""/>
205 <fileset dir="${plugindir}/Eclipse SWT Program/cde/library/"/>
206 <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="**/*.java" excludes=""/>
207 <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="**/*.java" excludes=""/>
208 <fileset dir="${plugindir}/Eclipse SWT Program/gnome/library/"/>
209 <fileset dir="${plugindir}/Eclipse SWT Program/gtk/" includes="**/*.java" excludes=""/>
Silenio Quartif5005b42006-04-26 14:58:10 +0000210 <fileset dir="${plugindir}/Eclipse SWT Theme/gtk/" includes="**/*.java" excludes=""/>
Veronika Irvine99e7d6f2005-06-17 14:41:43 +0000211 <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.properties" excludes=""/>
212 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/>
Veronika Irvineba8787c2005-06-20 21:32:54 +0000213 <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000214 </zip>
215 </target>
216
217 <target name="build.sources" depends="init">
218 <available property="src.zip" file="${build.result.folder}/src.zip"/>
219 <antcall target="src.zip"/>
220 </target>
221
222 <target name="build.zips" depends="init">
223 </target>
224
225 <target name="gather.sources" depends="init" if="destination.temp.folder">
226 <mkdir dir="${destination.temp.folder}/${full.name}"/>
227 <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/${full.name}/"/>
228 <copy todir="${destination.temp.folder}/${full.name}">
Veronika Irvine5100c932005-06-20 22:00:01 +0000229 <fileset dir="${basedir}" includes="about.html"/>
Veronika Irvine67802a32006-04-05 18:07:25 +0000230 <fileset dir="${basedir}" includes="about_files/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000231 </copy>
232 </target>
233
234 <target name="gather.logs" depends="init" if="destination.temp.folder">
235 <mkdir dir="${destination.temp.folder}/${full.name}"/>
sdimitro213cb6b2006-03-16 21:57:46 +0000236 <copy file="${temp.folder}/@dot.bin${logExtension}" todir="${destination.temp.folder}/${full.name}/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000237 </target>
238
239 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
240 <mkdir dir="${destination.temp.folder}/${full.name}"/>
241 <copy todir="${destination.temp.folder}/${full.name}" failonerror="true">
242 <fileset dir="${build.result.folder}/@dot" includes="**"/>
243 </copy>
244 <copy todir="${destination.temp.folder}/${full.name}">
Veronika Irvine73e931a2006-03-28 21:50:10 +0000245 <fileset dir="${basedir}" includes="fragment.properties,swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libcairo-swt.so,META-INF/"/>
Veronika Irvine5100c932005-06-20 22:00:01 +0000246 <fileset dir="${basedir}" includes="about.html"/>
Veronika Irvine67802a32006-04-05 18:07:25 +0000247 <fileset dir="${basedir}" includes="about_files/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000248 </copy>
Veronika Irvine73e931a2006-03-28 21:50:10 +0000249 <chmod perm="755" dir="${destination.temp.folder}/${full.name}" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libcairo-swt.so" />
Veronika Irvine7316faf2005-10-28 16:34:11 +0000250 <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000251 </target>
252
253 <target name="swtdownload" depends="init">
254 <delete dir="${temp.folder}"/>
255 <mkdir dir="${temp.folder}/swtdownload/"/>
256 <antcall target="build.jars"/>
Grant Gayeda82a62f2006-12-11 22:34:55 +0000257 <jar jarfile="${build.result.folder}/swt.jar" basedir="${basedir}" update="true" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libXm.so.2"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000258 <copy file="${build.result.folder}/swt.jar" todir="${temp.folder}/swtdownload"/>
259 <antcall target="build.sources"/>
260 <copy file="${build.result.folder}/src.zip" todir="${temp.folder}/swtdownload"/>
Veronika Irvine583e1112005-06-08 20:39:19 +0000261 <copy file="${plugindir}/build/.project" todir="${temp.folder}/swtdownload"/>
262 <copy file="${plugindir}/build/.classpath" todir="${temp.folder}/swtdownload"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000263 <copy todir="${temp.folder}/swtdownload">
Veronika Irvine5100c932005-06-20 22:00:01 +0000264 <fileset dir="${basedir}" includes="about.html,about_files/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000265 </copy>
Billy Biggsb433bfc2005-11-24 21:41:31 +0000266 <zip zipfile="${destination}/swt-${buildid}-${ws}-${os}-${arch}.zip">
Grant Gayed19dbf2e2006-12-21 20:01:48 +0000267 <zipfileset dir="${temp.folder}/swtdownload/"/>
Billy Biggsb433bfc2005-11-24 21:41:31 +0000268 </zip>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000269 <delete dir="${temp.folder}"/>
270 </target>
271
272 <target name="clean" depends="init">
273 <delete dir="${build.result.folder}/@dot"/>
274 <delete file="${build.result.folder}/src.zip"/>
275 <delete file="${plugin.destination}/${full.name}.jar"/>
276 <delete file="${plugin.destination}/${full.name}.zip"/>
277 <delete dir="${temp.folder}"/>
278 </target>
279
280 <target name="refresh" depends="init" if="eclipse.running">
281 <eclipse.refreshLocal resource="${fragment}" depth="infinite"/>
282 </target>
283
284 <target name="zip.plugin" depends="init">
285 <delete dir="${temp.folder}"/>
286 <mkdir dir="${temp.folder}"/>
287 <antcall target="build.jars"/>
288 <antcall target="build.sources"/>
289 <antcall target="gather.bin.parts">
290 <param name="destination.temp.folder" value="${temp.folder}/"/>
291 </antcall>
292 <antcall target="gather.sources">
293 <param name="destination.temp.folder" value="${temp.folder}/"/>
294 </antcall>
295 <delete>
sdimitro213cb6b2006-03-16 21:57:46 +0000296 <fileset dir="${temp.folder}" includes="**/*.bin${logExtension}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000297 </delete>
298 <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/>
299 <delete dir="${temp.folder}"/>
300 </target>
Grant Gayed6ef19e92007-02-07 19:51:37 +0000301</project>