|
Added
Link Here
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<project name="org.eclipse.equinox.p2.artifact.repository" default="build.jars" basedir="."> |
| 3 |
|
| 4 |
<property name="basews" value="${ws}"/> |
| 5 |
<property name="baseos" value="${os}"/> |
| 6 |
<property name="basearch" value="${arch}"/> |
| 7 |
<property name="basenl" value="${nl}"/> |
| 8 |
<property name="bundleId" value="org.eclipse.equinox.p2.artifact.repository"/> |
| 9 |
<property name="bundleVersion" value="1.0.100.z200811211449"/> |
| 10 |
|
| 11 |
<!-- Compiler settings. --> |
| 12 |
<property name="javacFailOnError" value="false"/> |
| 13 |
<property name="javacDebugInfo" value="on"/> |
| 14 |
<property name="javacVerbose" value="false"/> |
| 15 |
<property name="logExtension" value=".log"/> |
| 16 |
<property name="compilerArg" value=""/> |
| 17 |
<property name="javacSource" value="1.3"/> |
| 18 |
<property name="javacTarget" value="1.2"/> |
| 19 |
<condition property="dir_bootclasspath" value="${java.home}/../Classes"> |
| 20 |
<os family="mac"/> |
| 21 |
</condition> |
| 22 |
<property name="dir_bootclasspath" value="${java.home}/lib"/> |
| 23 |
<path id="path_bootclasspath"> |
| 24 |
<fileset dir="${dir_bootclasspath}"> |
| 25 |
<include name="*.jar"/> |
| 26 |
</fileset> |
| 27 |
</path> |
| 28 |
<property name="bootclasspath" refid="path_bootclasspath"/> |
| 29 |
<condition property="bundleBootClasspath" value="${J2SE-1.4}" > |
| 30 |
<isset property="J2SE-1.4"/> |
| 31 |
</condition> |
| 32 |
<condition property="bundleJavacSource" value="1.3" > |
| 33 |
<isset property="J2SE-1.4"/> |
| 34 |
</condition> |
| 35 |
<condition property="bundleJavacTarget" value="1.2" > |
| 36 |
<isset property="J2SE-1.4"/> |
| 37 |
</condition> |
| 38 |
<condition property="bundleBootClasspath" value="${CDC-1.1/Foundation-1.1}" > |
| 39 |
<isset property="CDC-1.1/Foundation-1.1"/> |
| 40 |
</condition> |
| 41 |
<condition property="bundleJavacSource" value="1.3" > |
| 42 |
<isset property="CDC-1.1/Foundation-1.1"/> |
| 43 |
</condition> |
| 44 |
<condition property="bundleJavacTarget" value="1.2" > |
| 45 |
<isset property="CDC-1.1/Foundation-1.1"/> |
| 46 |
</condition> |
| 47 |
<property name="bundleJavacSource" value="${javacSource}"/> |
| 48 |
<property name="bundleJavacTarget" value="${javacTarget}"/> |
| 49 |
<property name="bundleBootClasspath" value="${bootclasspath}"/> |
| 50 |
|
| 51 |
<target name="init" depends="properties"> |
| 52 |
<condition property="pluginTemp" value="${buildTempFolder}/plugins" > |
| 53 |
<isset property="buildTempFolder"/> |
| 54 |
</condition> |
| 55 |
<property name="pluginTemp" value="${basedir}"/> |
| 56 |
<condition property="build.result.folder" value="${pluginTemp}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" > |
| 57 |
<isset property="buildTempFolder"/> |
| 58 |
</condition> |
| 59 |
<property name="build.result.folder" value="${basedir}"/> |
| 60 |
<property name="temp.folder" value="${basedir}/temp.folder"/> |
| 61 |
<property name="plugin.destination" value="${basedir}"/> |
| 62 |
</target> |
| 63 |
|
| 64 |
<target name="properties" if="eclipse.running"> |
| 65 |
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 66 |
|
| 67 |
</target> |
| 68 |
|
| 69 |
<target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.equinox.p2.artifact.repository for an update site."> |
| 70 |
<delete dir="${temp.folder}"/> |
| 71 |
<mkdir dir="${temp.folder}"/> |
| 72 |
<antcall target="build.jars"/> |
| 73 |
<antcall target="gather.bin.parts"> |
| 74 |
<param name="destination.temp.folder" value="${temp.folder}/"/> |
| 75 |
</antcall> |
| 76 |
<jar destfile="${plugin.destination}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449.jar" basedir="${temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" filesetmanifest="merge"/> |
| 77 |
<delete dir="${temp.folder}"/> |
| 78 |
</target> |
| 79 |
|
| 80 |
<target name="@dot" depends="init" unless="@dot" description="Create jar: org.eclipse.equinox.p2.artifact.repository @dot."> |
| 81 |
<delete dir="${build.result.folder}/@dot"/> |
| 82 |
<mkdir dir="${build.result.folder}/@dot"/> |
| 83 |
<path id="@dot.classpath"> |
| 84 |
<pathelement path="../org.eclipse.osgi/bin/"/> |
| 85 |
<pathelement path="../org.eclipse.osgi/@dot"/> |
| 86 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20081110.jar"/> |
| 87 |
<pathelement path="../org.eclipse.equinox.common/bin/"/> |
| 88 |
<pathelement path="../org.eclipse.equinox.common/@dot"/> |
| 89 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20081026.jar"/> |
| 90 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20081026/runtime_registry_compatibility.jar"/> |
| 91 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20081026"/> |
| 92 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20081024-1200.jar"/> |
| 93 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.preferences_3.2.300.v20080722-0430.jar"/> |
| 94 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.contenttype_3.4.0.v20081117.jar"/> |
| 95 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar"/> |
| 96 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.app_1.2.0.v20080901.jar"/> |
| 97 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.osgi.services_3.1.200.v20071203.jar"/> |
| 98 |
<pathelement path="../../../../Program Files/eclipse/plugins/javax.servlet_2.4.0.v200806031604.jar"/> |
| 99 |
<pathelement path="../org.eclipse.equinox.p2.core/bin/"/> |
| 100 |
<pathelement path="../org.eclipse.equinox.p2.core/@dot"/> |
| 101 |
<pathelement path="../org.eclipse.equinox.p2.jarprocessor/bin/"/> |
| 102 |
<pathelement path="../org.eclipse.equinox.p2.jarprocessor/@dot"/> |
| 103 |
<pathelement path="../org.eclipse.equinox.p2.metadata/bin/"/> |
| 104 |
<pathelement path="../org.eclipse.equinox.p2.metadata/@dot"/> |
| 105 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20080722-0430.jar"/> |
| 106 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.security.win32.x86_1.0.100.v20080722-0430.jar"/> |
| 107 |
<pathelement path="../org.eclipse.ecf.filetransfer/bin/"/> |
| 108 |
<pathelement path="../org.eclipse.ecf.filetransfer/@dot"/> |
| 109 |
<pathelement path="../org.eclipse.ecf/bin/"/> |
| 110 |
<pathelement path="../org.eclipse.ecf/@dot"/> |
| 111 |
<pathelement path="../org.eclipse.ecf.ssl/bin/"/> |
| 112 |
<pathelement path="../org.eclipse.ecf.ssl/@dot"/> |
| 113 |
<pathelement path="../org.eclipse.ecf.core.identity/bin/"/> |
| 114 |
<pathelement path="../org.eclipse.ecf.core.identity/@dot"/> |
| 115 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.apache.ant_1.7.1/lib/ant.jar"/> |
| 116 |
</path> |
| 117 |
<!-- compile the source code --> |
| 118 |
<javac destdir="${build.result.folder}/@dot" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" > |
| 119 |
<compilerarg line="${compilerArg}" compiler="${build.compiler}"/> |
| 120 |
<classpath refid="@dot.classpath" /> |
| 121 |
<src path="src/" /> |
| 122 |
<compilerarg value="@${basedir}/javaCompiler...args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 123 |
<compilerarg line="-log '${build.result.folder}/@dot${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 124 |
</javac> |
| 125 |
<!-- Copy necessary resources --> |
| 126 |
<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false"> |
| 127 |
<fileset dir="src/"> |
| 128 |
<exclude name="**/*.java"/> |
| 129 |
<exclude name="**/package.htm*"/> |
| 130 |
</fileset> |
| 131 |
</copy> |
| 132 |
</target> |
| 133 |
|
| 134 |
<target name="src.zip" depends="init" unless="src.zip"> |
| 135 |
<mkdir dir="${build.result.folder}"/> |
| 136 |
<antcall target="zip.src.zip"/> |
| 137 |
</target> |
| 138 |
<target name="zip.src.zip"> |
| 139 |
<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false"> |
| 140 |
<fileset dir="src/"> |
| 141 |
<include name="**/*.java"/> |
| 142 |
</fileset> |
| 143 |
</zip> |
| 144 |
</target> |
| 145 |
<target name="copy.src.zip"> |
| 146 |
<copy todir="${source.destination.folder}/" failonerror="true" overwrite="true"> |
| 147 |
<fileset dir="src/"> |
| 148 |
<include name="**/*.java"/> |
| 149 |
</fileset> |
| 150 |
</copy> |
| 151 |
</target> |
| 152 |
|
| 153 |
<target name="ant_tasks/artifactRepository-ant.jar" depends="init" unless="ant_tasks/artifactRepository-ant.jar" description="Create jar: org.eclipse.equinox.p2.artifact.repository ant_tasks/artifactRepository-ant.jar."> |
| 154 |
<delete dir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin"/> |
| 155 |
<mkdir dir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin"/> |
| 156 |
<path id="ant_tasks/artifactRepository-ant.jar.classpath"> |
| 157 |
<pathelement path="../org.eclipse.osgi/bin/"/> |
| 158 |
<pathelement path="../org.eclipse.osgi/@dot"/> |
| 159 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20081110.jar"/> |
| 160 |
<pathelement path="../org.eclipse.equinox.common/bin/"/> |
| 161 |
<pathelement path="../org.eclipse.equinox.common/@dot"/> |
| 162 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20081026.jar"/> |
| 163 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20081026/runtime_registry_compatibility.jar"/> |
| 164 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20081026"/> |
| 165 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.registry_3.4.100.v20081024-1200.jar"/> |
| 166 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.preferences_3.2.300.v20080722-0430.jar"/> |
| 167 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.contenttype_3.4.0.v20081117.jar"/> |
| 168 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar"/> |
| 169 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.app_1.2.0.v20080901.jar"/> |
| 170 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.osgi.services_3.1.200.v20071203.jar"/> |
| 171 |
<pathelement path="../../../../Program Files/eclipse/plugins/javax.servlet_2.4.0.v200806031604.jar"/> |
| 172 |
<pathelement path="../org.eclipse.equinox.p2.core/bin/"/> |
| 173 |
<pathelement path="../org.eclipse.equinox.p2.core/@dot"/> |
| 174 |
<pathelement path="../org.eclipse.equinox.p2.jarprocessor/bin/"/> |
| 175 |
<pathelement path="../org.eclipse.equinox.p2.jarprocessor/@dot"/> |
| 176 |
<pathelement path="../org.eclipse.equinox.p2.metadata/bin/"/> |
| 177 |
<pathelement path="../org.eclipse.equinox.p2.metadata/@dot"/> |
| 178 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.security_1.0.100.v20080722-0430.jar"/> |
| 179 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.eclipse.equinox.security.win32.x86_1.0.100.v20080722-0430.jar"/> |
| 180 |
<pathelement path="../org.eclipse.ecf.filetransfer/bin/"/> |
| 181 |
<pathelement path="../org.eclipse.ecf.filetransfer/@dot"/> |
| 182 |
<pathelement path="../org.eclipse.ecf/bin/"/> |
| 183 |
<pathelement path="../org.eclipse.ecf/@dot"/> |
| 184 |
<pathelement path="../org.eclipse.ecf.ssl/bin/"/> |
| 185 |
<pathelement path="../org.eclipse.ecf.ssl/@dot"/> |
| 186 |
<pathelement path="../org.eclipse.ecf.core.identity/bin/"/> |
| 187 |
<pathelement path="../org.eclipse.ecf.core.identity/@dot"/> |
| 188 |
<pathelement path="bin/"/> |
| 189 |
<pathelement path="${build.result.folder}/../org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/bin/"/> |
| 190 |
<pathelement path="${build.result.folder}/@dot"/> |
| 191 |
<pathelement path="${build.result.folder}/../org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/@dot"/> |
| 192 |
<pathelement path="../../../../Program Files/eclipse/plugins/org.apache.ant_1.7.1/lib/ant.jar"/> |
| 193 |
</path> |
| 194 |
<!-- compile the source code --> |
| 195 |
<javac destdir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" > |
| 196 |
<compilerarg line="${compilerArg}" compiler="${build.compiler}"/> |
| 197 |
<classpath refid="ant_tasks/artifactRepository-ant.jar.classpath" /> |
| 198 |
<src path="src_ant/" /> |
| 199 |
<compilerarg value="@${basedir}/javaCompiler.ant_tasks_artifactRepository-ant.jar.args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 200 |
<compilerarg line="-log '${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 201 |
</javac> |
| 202 |
<!-- Copy necessary resources --> |
| 203 |
<copy todir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin" failonerror="true" overwrite="false"> |
| 204 |
<fileset dir="src_ant/"> |
| 205 |
<exclude name="**/*.java"/> |
| 206 |
<exclude name="**/package.htm*"/> |
| 207 |
</fileset> |
| 208 |
</copy> |
| 209 |
<mkdir dir="${build.result.folder}/ant_tasks"/> |
| 210 |
<jar destfile="${build.result.folder}/ant_tasks/artifactRepository-ant.jar" basedir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin"/> |
| 211 |
<delete dir="${temp.folder}/ant_tasks/artifactRepository-ant.jar.bin"/> |
| 212 |
</target> |
| 213 |
|
| 214 |
<target name="ant_tasks/artifactRepository-antsrc.zip" depends="init" unless="ant_tasks/artifactRepository-antsrc.zip"> |
| 215 |
<mkdir dir="${build.result.folder}/ant_tasks"/> |
| 216 |
<antcall target="zip.ant_tasks/artifactRepository-antsrc.zip"/> |
| 217 |
</target> |
| 218 |
<target name="zip.ant_tasks/artifactRepository-antsrc.zip"> |
| 219 |
<zip destfile="${build.result.folder}/ant_tasks/artifactRepository-antsrc.zip" filesonly="false" whenempty="skip" update="false"> |
| 220 |
<fileset dir="src_ant/"> |
| 221 |
<include name="**/*.java"/> |
| 222 |
</fileset> |
| 223 |
</zip> |
| 224 |
</target> |
| 225 |
<target name="copy.ant_tasks/artifactRepository-antsrc.zip"> |
| 226 |
<copy todir="${source.destination.folder}/ant_tasks/artifactRepository-antsrc" failonerror="true" overwrite="true"> |
| 227 |
<fileset dir="src_ant/"> |
| 228 |
<include name="**/*.java"/> |
| 229 |
</fileset> |
| 230 |
</copy> |
| 231 |
</target> |
| 232 |
|
| 233 |
<target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: org.eclipse.equinox.p2.artifact.repository."> |
| 234 |
<available property="@dot" file="${build.result.folder}/@dot"/> |
| 235 |
<antcall target="@dot"/> |
| 236 |
<available property="ant_tasks/artifactRepository-ant.jar" file="${build.result.folder}/ant_tasks/artifactRepository-ant.jar"/> |
| 237 |
<antcall target="ant_tasks/artifactRepository-ant.jar"/> |
| 238 |
</target> |
| 239 |
|
| 240 |
<target name="build.sources" depends="init"> |
| 241 |
<available property="src.zip" file="${build.result.folder}/src.zip"/> |
| 242 |
<antcall target="src.zip"/> |
| 243 |
<available property="ant_tasks/artifactRepository-antsrc.zip" file="${build.result.folder}/ant_tasks/artifactRepository-antsrc.zip"/> |
| 244 |
<antcall target="ant_tasks/artifactRepository-antsrc.zip"/> |
| 245 |
</target> |
| 246 |
|
| 247 |
<target name="gather.bin.parts" depends="init" if="destination.temp.folder"> |
| 248 |
<mkdir dir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449"/> |
| 249 |
<copy todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" failonerror="true" overwrite="false"> |
| 250 |
<fileset dir="${build.result.folder}"> |
| 251 |
<include name="ant_tasks/artifactRepository-ant.jar"/> |
| 252 |
</fileset> |
| 253 |
</copy> |
| 254 |
<copy todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" failonerror="true" overwrite="false"> |
| 255 |
<fileset dir="${build.result.folder}/@dot"> |
| 256 |
<include name="**"/> |
| 257 |
</fileset> |
| 258 |
</copy> |
| 259 |
<copy todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" failonerror="true" overwrite="false"> |
| 260 |
<fileset dir="${basedir}"> |
| 261 |
<include name="META-INF/"/> |
| 262 |
<include name="plugin.xml"/> |
| 263 |
<include name="about.html"/> |
| 264 |
<include name="plugin.properties"/> |
| 265 |
<include name="ant_tasks/artifactRepository-ant.jar"/> |
| 266 |
</fileset> |
| 267 |
</copy> |
| 268 |
<eclipse.versionReplacer path="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" version="1.0.100.z200811211449"/> |
| 269 |
</target> |
| 270 |
|
| 271 |
<target name="build.zips" depends="init"> |
| 272 |
</target> |
| 273 |
|
| 274 |
<target name="gather.sources" depends="init" if="destination.temp.folder"> |
| 275 |
<mkdir dir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/ant_tasks"/> |
| 276 |
<copy file="${build.result.folder}/ant_tasks/artifactRepository-antsrc.zip" todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/ant_tasks" failonerror="false" overwrite="false"/> |
| 277 |
<mkdir dir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449"/> |
| 278 |
<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" failonerror="false" overwrite="false"/> |
| 279 |
<antcall target="copy.src.includes"> |
| 280 |
<param name="source.destination.folder" value="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449"/> |
| 281 |
</antcall> |
| 282 |
</target> |
| 283 |
|
| 284 |
<target name="gather.individual.sources" depends="init"> |
| 285 |
<antcall target="copy.ant_tasks/artifactRepository-antsrc.zip"> |
| 286 |
<param name="source.destination.folder" value="${destination.temp.folder}"/> |
| 287 |
</antcall> |
| 288 |
<antcall target="copy.src.zip"> |
| 289 |
<param name="source.destination.folder" value="${destination.temp.folder}"/> |
| 290 |
</antcall> |
| 291 |
<antcall target="copy.src.includes"> |
| 292 |
<param name="source.destination.folder" value="${destination.temp.folder}"/> |
| 293 |
</antcall> |
| 294 |
</target> |
| 295 |
|
| 296 |
<target name="copy.src.includes" depends="init"> |
| 297 |
<copy todir="${source.destination.folder}" failonerror="false" overwrite="false"> |
| 298 |
<fileset dir="${basedir}"> |
| 299 |
<include name="about.html"/> |
| 300 |
<include name="schema/"/> |
| 301 |
</fileset> |
| 302 |
</copy> |
| 303 |
</target> |
| 304 |
|
| 305 |
<target name="gather.logs" depends="init" if="destination.temp.folder"> |
| 306 |
<mkdir dir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/ant_tasks"/> |
| 307 |
<copy todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449/ant_tasks" failonerror="false" overwrite="false"> |
| 308 |
<fileset dir="${temp.folder}/ant_tasks"> |
| 309 |
<include name="artifactRepository-ant.jar.bin${logExtension}"/> |
| 310 |
</fileset> |
| 311 |
</copy> |
| 312 |
<mkdir dir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449"/> |
| 313 |
<copy todir="${destination.temp.folder}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449" failonerror="false" overwrite="false"> |
| 314 |
<fileset dir="${build.result.folder}"> |
| 315 |
<include name="@dot${logExtension}"/> |
| 316 |
</fileset> |
| 317 |
</copy> |
| 318 |
</target> |
| 319 |
|
| 320 |
<target name="clean" depends="init" description="Clean the plug-in: org.eclipse.equinox.p2.artifact.repository of all the zips, jars and logs created."> |
| 321 |
<delete file="${build.result.folder}/ant_tasks/artifactRepository-ant.jar"/> |
| 322 |
<delete file="${build.result.folder}/ant_tasks/artifactRepository-antsrc.zip"/> |
| 323 |
<delete dir="${build.result.folder}/@dot"/> |
| 324 |
<delete file="${build.result.folder}/src.zip"/> |
| 325 |
<delete file="${plugin.destination}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449.jar"/> |
| 326 |
<delete file="${plugin.destination}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449.zip"/> |
| 327 |
<delete dir="${temp.folder}"/> |
| 328 |
</target> |
| 329 |
|
| 330 |
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> |
| 331 |
<eclipse.convertPath fileSystemPath="C:/Documents and Settings/agcattle/workspace/org.eclipse.equinox.p2.artifact.repository" property="resourcePath"/> |
| 332 |
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> |
| 333 |
</target> |
| 334 |
|
| 335 |
<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.equinox.p2.artifact.repository."> |
| 336 |
<delete dir="${temp.folder}"/> |
| 337 |
<mkdir dir="${temp.folder}"/> |
| 338 |
<antcall target="build.jars"/> |
| 339 |
<antcall target="build.sources"/> |
| 340 |
<antcall target="gather.bin.parts"> |
| 341 |
<param name="destination.temp.folder" value="${temp.folder}/"/> |
| 342 |
</antcall> |
| 343 |
<antcall target="gather.sources"> |
| 344 |
<param name="destination.temp.folder" value="${temp.folder}/"/> |
| 345 |
</antcall> |
| 346 |
<delete> |
| 347 |
<fileset dir="${temp.folder}"> |
| 348 |
<include name="**/*.bin${logExtension}"/> |
| 349 |
</fileset> |
| 350 |
</delete> |
| 351 |
<zip destfile="${plugin.destination}/org.eclipse.equinox.p2.artifact.repository_1.0.100.z200811211449.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> |
| 352 |
<delete dir="${temp.folder}"/> |
| 353 |
</target> |
| 354 |
|
| 355 |
</project> |