Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project name="org.eclipse.swt.motif.aix.ppc" default="build.jars" basedir="."> |
| 3 | |
| 4 | <target name="init" depends="properties"> |
| 5 | <property name="ws" value="motif"/> |
| 6 | <property name="os" value="aix"/> |
| 7 | <property name="arch" value="ppc"/> |
| 8 | <property name="fragment" value="org.eclipse.swt.${ws}.${os}.${arch}"/> |
Veronika Irvine | 2af85e5 | 2005-11-07 15:00:33 +0000 | [diff] [blame^] | 9 | <property name="version.suffix" value="3.2.0"/> |
Veronika Irvine | 12b1d11 | 2005-10-28 16:23:09 +0000 | [diff] [blame] | 10 | <property name="full.name" value="${fragment}_${version.suffix}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 11 | <property name="temp.folder" value="${basedir}/temp.folder"/> |
| 12 | <property name="plugin.destination" value="${basedir}"/> |
| 13 | <property name="build.result.folder" value="${basedir}"/> |
| 14 | <property name="destination" value="${basedir}"/> |
| 15 | <property name="plugindir" value="../org.eclipse.swt"/> |
| 16 | <property name="bootclasspath" value=""/> |
Veronika Irvine | 672510b | 2005-05-30 17:47:57 +0000 | [diff] [blame] | 17 | <property name="javacVerbose" value="true"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 18 | </target> |
| 19 | |
| 20 | <target name="properties" if="eclipse.running"> |
| 21 | <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 22 | </target> |
| 23 | |
| 24 | <target name="build.update.jar" depends="init"> |
| 25 | <delete dir="${temp.folder}"/> |
| 26 | <mkdir dir="${temp.folder}"/> |
| 27 | <antcall target="build.jars"/> |
| 28 | <antcall target="gather.bin.parts"> |
| 29 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 30 | </antcall> |
| 31 | <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/> |
| 32 | <delete dir="${temp.folder}"/> |
| 33 | </target> |
| 34 | |
| 35 | <target name="@dot" depends="init" unless="@dot" description="Create jar: @dot."> |
| 36 | <property name="destdir" value="${temp.folder}/@dot.bin"/> |
| 37 | <delete dir="${temp.folder}/@dot.bin"/> |
| 38 | <mkdir dir="${temp.folder}/@dot.bin"/> |
Veronika Irvine | 672510b | 2005-05-30 17:47:57 +0000 | [diff] [blame] | 39 | <javac destdir="${temp.folder}/@dot.bin" verbose="${javacVerbose}" debug="on" failonerror="no" bootclasspath="${bootclasspath}" source="1.3" target="1.2"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 40 | <src path="${plugindir}/Eclipse SWT/cairo/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 41 | <src path="${plugindir}/Eclipse SWT/common/"/> |
| 42 | <src path="${plugindir}/Eclipse SWT/common_j2se/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 43 | <src path="${plugindir}/Eclipse SWT/emulated/bidi"/> |
| 44 | <src path="${plugindir}/Eclipse SWT/emulated/coolbar"/> |
| 45 | <src path="${plugindir}/Eclipse SWT/emulated/tabfolder"/> |
| 46 | <src path="${plugindir}/Eclipse SWT/emulated/tray"/> |
| 47 | <src path="${plugindir}/Eclipse SWT/emulated/treetable"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 48 | <src path="${plugindir}/Eclipse SWT/motif/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 49 | <src path="${plugindir}/Eclipse SWT Accessibility/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 50 | <src path="${plugindir}/Eclipse SWT Accessibility/emulated/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 51 | <src path="${plugindir}/Eclipse SWT AWT/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 52 | <src path="${plugindir}/Eclipse SWT AWT/motif/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 53 | <src path="${plugindir}/Eclipse SWT Browser/common/"/> |
| 54 | <src path="${plugindir}/Eclipse SWT Browser/motif/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 55 | <src path="${plugindir}/Eclipse SWT Custom Widgets/common/"/> |
| 56 | <src path="${plugindir}/Eclipse SWT Drag and Drop/common/"/> |
| 57 | <src path="${plugindir}/Eclipse SWT Drag and Drop/motif/"/> |
| 58 | <src path="${plugindir}/Eclipse SWT Mozilla/common/"/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 59 | <src path="${plugindir}/Eclipse SWT OpenGL/motif/"/> |
| 60 | <src path="${plugindir}/Eclipse SWT OpenGL/glx/"/> |
| 61 | <src path="${plugindir}/Eclipse SWT OpenGL/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 62 | <src path="${plugindir}/Eclipse SWT PI/cairo/"/> |
| 63 | <src path="${plugindir}/Eclipse SWT PI/common/"/> |
| 64 | <src path="${plugindir}/Eclipse SWT PI/common_j2se/"/> |
| 65 | <src path="${plugindir}/Eclipse SWT PI/motif/"/> |
| 66 | <src path="${plugindir}/Eclipse SWT PI/motif_gtk/"/> |
| 67 | <src path="${plugindir}/Eclipse SWT Printing/common/"/> |
| 68 | <src path="${plugindir}/Eclipse SWT Printing/motif/"/> |
| 69 | <src path="${plugindir}/Eclipse SWT Program/cde/"/> |
| 70 | <src path="${plugindir}/Eclipse SWT Program/common/"/> |
| 71 | <src path="${plugindir}/Eclipse SWT Program/gnome/"/> |
| 72 | <src path="${plugindir}/Eclipse SWT Program/motif/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 73 | </javac> |
| 74 | <property name="includes" value=""/> |
| 75 | <property name="excludes" value="**/*.java,**/library/,**/package.htm*"/> |
| 76 | <copy todir="${temp.folder}/@dot.bin"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 77 | <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 78 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="${includes}" excludes="${excludes}"/> |
| 79 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 80 | <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi" includes="${includes}" excludes="${excludes}"/> |
| 81 | <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar" includes="${includes}" excludes="${excludes}"/> |
| 82 | <fileset dir="${plugindir}/Eclipse SWT/emulated/tabfolder" includes="${includes}" excludes="${excludes}"/> |
| 83 | <fileset dir="${plugindir}/Eclipse SWT/emulated/tray" includes="${includes}" excludes="${excludes}"/> |
| 84 | <fileset dir="${plugindir}/Eclipse SWT/emulated/treetable" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 85 | <fileset dir="${plugindir}/Eclipse SWT/motif/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 86 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 87 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/emulated/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 88 | <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 89 | <fileset dir="${plugindir}/Eclipse SWT AWT/motif/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 90 | <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="${includes}" excludes="${excludes}"/> |
| 91 | <fileset dir="${plugindir}/Eclipse SWT Browser/motif/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 92 | <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="${includes}" excludes="${excludes}"/> |
| 93 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="${includes}" excludes="${excludes}"/> |
| 94 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/motif/" includes="${includes}" excludes="${excludes}"/> |
| 95 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="${includes}" excludes="${excludes}"/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 96 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/motif/" includes="${includes}" excludes="${excludes}"/> |
| 97 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="${includes}" excludes="${excludes}"/> |
| 98 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 99 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="${includes}" excludes="${excludes}"/> |
| 100 | <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="${includes}" excludes="${excludes}"/> |
| 101 | <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="${includes}" excludes="${excludes}"/> |
| 102 | <fileset dir="${plugindir}/Eclipse SWT PI/motif/" includes="${includes}" excludes="${excludes}"/> |
| 103 | <fileset dir="${plugindir}/Eclipse SWT PI/motif_gtk/" includes="${includes}" excludes="${excludes}"/> |
| 104 | <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="${includes}" excludes="${excludes}"/> |
| 105 | <fileset dir="${plugindir}/Eclipse SWT Printing/motif/" includes="${includes}" excludes="${excludes}"/> |
| 106 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="${includes}" excludes="${excludes}"/> |
| 107 | <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="${includes}" excludes="${excludes}"/> |
| 108 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="${includes}" excludes="${excludes}"/> |
| 109 | <fileset dir="${plugindir}/Eclipse SWT Program/motif/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 110 | </copy> |
| 111 | |
| 112 | <mkdir dir="${build.result.folder}/@dot"/> |
| 113 | <copy todir="${build.result.folder}/@dot" failonerror="true"> |
| 114 | <fileset dir="${temp.folder}/@dot.bin"/> |
| 115 | </copy> |
| 116 | <!-- prepare a jar file solely for the download target --> |
| 117 | <jar jarfile="${build.result.folder}/swt.jar" basedir="${temp.folder}/@dot.bin"/> |
| 118 | <delete dir="${temp.folder}/@dot.bin"/> |
| 119 | </target> |
| 120 | |
| 121 | <target name="build.jars" depends="init"> |
| 122 | <available property="@dot" file="${build.result.folder}/@dot"/> |
| 123 | <antcall target="@dot"/> |
| 124 | </target> |
| 125 | |
| 126 | <target name="src.zip" depends="init" unless="src.zip"> |
| 127 | <mkdir dir="${build.result.folder}/"/> |
| 128 | <zip zipfile="${build.result.folder}/src.zip"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 129 | <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 130 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/> |
| 131 | <fileset dir="${plugindir}/Eclipse SWT/common/library/"/> |
| 132 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 133 | <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi" includes="**/*.java" excludes=""/> |
| 134 | <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar" includes="**/*.java" excludes=""/> |
| 135 | <fileset dir="${plugindir}/Eclipse SWT/emulated/tabfolder" includes="**/*.java" excludes=""/> |
| 136 | <fileset dir="${plugindir}/Eclipse SWT/emulated/tray" includes="**/*.java" excludes=""/> |
| 137 | <fileset dir="${plugindir}/Eclipse SWT/emulated/treetable" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 138 | <fileset dir="${plugindir}/Eclipse SWT/motif/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 139 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 140 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/emulated/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 141 | <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 142 | <fileset dir="${plugindir}/Eclipse SWT AWT/motif/" includes="**/*.java" excludes=""/> |
| 143 | <fileset dir="${plugindir}/Eclipse SWT AWT/motif/library/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 144 | <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/> |
| 145 | <fileset dir="${plugindir}/Eclipse SWT Browser/motif/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 146 | <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="**/*.java" excludes=""/> |
| 147 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="**/*.java" excludes=""/> |
| 148 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/motif/" includes="**/*.java" excludes=""/> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 149 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 150 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/library/"/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 151 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/motif/" includes="**/*.java" excludes=""/> |
| 152 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="**/*.java" excludes=""/> |
| 153 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/library/"/> |
| 154 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 155 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 156 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/library/"/> |
| 157 | <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="**/*.java" excludes=""/> |
| 158 | <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="**/*.java" excludes=""/> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 159 | <fileset dir="${plugindir}/Eclipse SWT PI/motif/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 160 | <fileset dir="${plugindir}/Eclipse SWT PI/motif/library/"/> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 161 | <fileset dir="${plugindir}/Eclipse SWT PI/motif_gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 162 | <fileset dir="${plugindir}/Eclipse SWT PI/motif_gtk/library/"/> |
| 163 | <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="**/*.java" excludes=""/> |
| 164 | <fileset dir="${plugindir}/Eclipse SWT Printing/motif/" includes="**/*.java" excludes=""/> |
| 165 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="**/*.java" excludes=""/> |
| 166 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/library/"/> |
| 167 | <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="**/*.java" excludes=""/> |
| 168 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="**/*.java" excludes=""/> |
| 169 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/library/"/> |
| 170 | <fileset dir="${plugindir}/Eclipse SWT Program/motif/" includes="**/*.java" excludes=""/> |
Veronika Irvine | 99e7d6f | 2005-06-17 14:41:43 +0000 | [diff] [blame] | 171 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.properties" excludes=""/> |
| 172 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 173 | <fileset dir="${basedir}" includes="about.html" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 174 | </zip> |
| 175 | </target> |
| 176 | |
| 177 | <target name="build.sources" depends="init"> |
| 178 | <available property="src.zip" file="${build.result.folder}/src.zip"/> |
| 179 | <antcall target="src.zip"/> |
| 180 | </target> |
| 181 | |
| 182 | <target name="build.zips" depends="init"> |
| 183 | </target> |
| 184 | |
| 185 | <target name="gather.sources" depends="init" if="destination.temp.folder"> |
| 186 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
| 187 | <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/${full.name}/"/> |
| 188 | <copy todir="${destination.temp.folder}/${full.name}"> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 189 | <fileset dir="${basedir}" includes="about.html"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 190 | </copy> |
| 191 | </target> |
| 192 | |
| 193 | <target name="gather.logs" depends="init" if="destination.temp.folder"> |
| 194 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
| 195 | <copy file="${temp.folder}/@dot.bin.log" todir="${destination.temp.folder}/${full.name}/"/> |
| 196 | </target> |
| 197 | |
| 198 | <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> |
| 199 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
| 200 | <copy todir="${destination.temp.folder}/${full.name}" failonerror="true"> |
| 201 | <fileset dir="${build.result.folder}/@dot" includes="**"/> |
| 202 | </copy> |
| 203 | <copy todir="${destination.temp.folder}/${full.name}"> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 204 | <fileset dir="${basedir}" includes="fragment.properties,about.html,swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,META-INF/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 205 | </copy> |
| 206 | <chmod perm="755" dir="${destination.temp.folder}/${full.name}" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib" /> |
Veronika Irvine | 12b1d11 | 2005-10-28 16:23:09 +0000 | [diff] [blame] | 207 | <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 208 | </target> |
| 209 | |
| 210 | <target name="swtdownload" depends="init"> |
| 211 | <delete dir="${temp.folder}"/> |
| 212 | <mkdir dir="${temp.folder}/swtdownload/"/> |
| 213 | <antcall target="build.jars"/> |
| 214 | <copy file="${build.result.folder}/swt.jar" todir="${temp.folder}/swtdownload"/> |
| 215 | <antcall target="build.sources"/> |
| 216 | <copy file="${build.result.folder}/src.zip" todir="${temp.folder}/swtdownload"/> |
Veronika Irvine | 583e111 | 2005-06-08 20:39:19 +0000 | [diff] [blame] | 217 | <copy file="${plugindir}/build/.project" todir="${temp.folder}/swtdownload"/> |
| 218 | <copy file="${plugindir}/build/.classpath" todir="${temp.folder}/swtdownload"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 219 | <copy todir="${temp.folder}/swtdownload"> |
Veronika Irvine | bbbcc51 | 2005-06-23 13:55:02 +0000 | [diff] [blame] | 220 | <fileset dir="${basedir}" includes="about.html"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 221 | <fileset dir="${basedir}" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libXm.so.2"/> |
| 222 | </copy> |
| 223 | <chmod dir="${temp.folder}/swtdownload" perm="755" includes="**/lib*"/> |
| 224 | <exec dir="${temp.folder}/swtdownload" executable="zip"> |
Christophe Cornu | d4d7cec | 2005-04-11 15:25:52 +0000 | [diff] [blame] | 225 | <arg line="-r -q -y ${destination}/swt-${buildid}-${ws}-${os}-${arch}.zip ."/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 226 | </exec> |
| 227 | <delete dir="${temp.folder}"/> |
| 228 | </target> |
| 229 | |
| 230 | <target name="clean" depends="init"> |
| 231 | <delete dir="${build.result.folder}/@dot"/> |
| 232 | <delete file="${build.result.folder}/src.zip"/> |
| 233 | <delete file="${plugin.destination}/${full.name}.jar"/> |
| 234 | <delete file="${plugin.destination}/${full.name}.zip"/> |
| 235 | <delete dir="${temp.folder}"/> |
| 236 | </target> |
| 237 | |
| 238 | <target name="refresh" depends="init" if="eclipse.running"> |
| 239 | <eclipse.refreshLocal resource="${fragment}" depth="infinite"/> |
| 240 | </target> |
| 241 | |
| 242 | <target name="zip.plugin" depends="init"> |
| 243 | <delete dir="${temp.folder}"/> |
| 244 | <mkdir dir="${temp.folder}"/> |
| 245 | <antcall target="build.jars"/> |
| 246 | <antcall target="build.sources"/> |
| 247 | <antcall target="gather.bin.parts"> |
| 248 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 249 | </antcall> |
| 250 | <antcall target="gather.sources"> |
| 251 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 252 | </antcall> |
| 253 | <delete> |
| 254 | <fileset dir="${temp.folder}" includes="**/*.bin.log"/> |
| 255 | </delete> |
| 256 | <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/> |
| 257 | <delete dir="${temp.folder}"/> |
| 258 | </target> |
| 259 | </project> |