diff options
author | Kevin Barnes <krbarnes> | 2009-03-23 15:00:47 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2009-03-23 15:00:47 +0000 |
commit | 6251dbe0c2795246230326b11053f03fa869fabb (patch) | |
tree | bbc8b763428dad0d7f20571efd28cd110ee05a7d | |
parent | c25065768a620986e779f5bcf9bb953d36bdd77b (diff) | |
download | eclipse.platform.swt-6251dbe0c2795246230326b11053f03fa869fabb.tar.gz eclipse.platform.swt-6251dbe0c2795246230326b11053f03fa869fabb.tar.xz eclipse.platform.swt-6251dbe0c2795246230326b11053f03fa869fabb.zip |
268584 - update swt custom build scripts to support new publishing task
-rw-r--r-- | bundles/org.eclipse.swt/build.xml | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/bundles/org.eclipse.swt/build.xml b/bundles/org.eclipse.swt/build.xml index 34bdc57f3c..25a1809f5e 100644 --- a/bundles/org.eclipse.swt/build.xml +++ b/bundles/org.eclipse.swt/build.xml @@ -2,30 +2,40 @@ <project name="org.eclipse.swt" default="build.update.jar" basedir="."> <target name="init"> - <property name="plugin" value="org.eclipse.swt"/> - <property name="version.suffix" value="3.5.0"/> - <property name="full.name" value="${plugin}_${version.suffix}"/> - <property name="temp.folder" value="${basedir}/temp.folder"/> - <property name="plugin.destination" value="${basedir}"/> - <property name="build.result.folder" value="${basedir}"/> + <property name="plugin" value="org.eclipse.swt" /> + <property name="version.suffix" value="3.5.0" /> + <property name="full.name" value="${plugin}_${version.suffix}" /> + <property name="temp.folder" value="${basedir}/temp.folder" /> + <property name="plugin.destination" value="${basedir}" /> + <property name="build.result.folder" value="${basedir}" /> + <condition property="p2.publish.parts" value="true"> + <istrue value="${p2.gathering}" /> + </condition> </target> <target name="build.update.jar" depends="init"> - <delete dir="${temp.folder}"/> - <mkdir dir="${temp.folder}"/> + <delete dir="${temp.folder}" /> + <mkdir dir="${temp.folder}" /> <antcall target="gather.bin.parts"> - <param name="destination.temp.folder" value="${temp.folder}/"/> + <param name="destination.temp.folder" value="${temp.folder}/" /> </antcall> - <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/> - <delete dir="${temp.folder}"/> + <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false" /> + <delete dir="${temp.folder}" /> + </target> + + <target name="publish.bin.parts" depends="init" if="p2.publish.parts"> + <antcall target="gather.bin.parts"> + <param name="destination.temp.folder" value="${build.result.folder}" /> + </antcall> + <eclipse.gatherBundle metadataRepository="${p2.build.repo}" artifactRepository="${p2.build.repo}" buildResultFolder="${build.result.folder}" targetFolder="${build.result.folder}/${full.name}" /> </target> <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> - <mkdir dir="${destination.temp.folder}/${full.name}"/> + <mkdir dir="${destination.temp.folder}/${full.name}" /> <copy todir="${destination.temp.folder}/${full.name}"> <fileset dir="${basedir}" includes="plugin.properties,about.html,about_files/,META-INF/" /> </copy> - <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/> + <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}" /> </target> <target name="build.jars" /> @@ -34,17 +44,17 @@ <target name="gather.logs" /> <target name="copy.classpath" unless="haveclasspath"> - <copy file=".classpath_${osgi.ws}" tofile=".classpath"/> - <eclipse.refreshLocal resource="." depth="infinite"/> + <copy file=".classpath_${osgi.ws}" tofile=".classpath" /> + <eclipse.refreshLocal resource="." depth="infinite" /> </target> <target name="setup.classpath"> - <available file=".classpath" property="haveclasspath"/> - <antcall target="copy.classpath"/> - <copy file=".project_normal" tofile=".project" overwrite="yes"/> + <available file=".classpath" property="haveclasspath" /> + <antcall target="copy.classpath" /> + <copy file=".project_normal" tofile=".project" overwrite="yes" /> </target> <target name="clean" depends="init"> </target> - + </project>
\ No newline at end of file |