Author: nickboldt
Date: 2011-09-23 16:28:44 -0400 (Fri, 23 Sep 2011)
New Revision: 35014
Modified:
trunk/download.jboss.org/jbosstools/updates/requirements/springide/build.xml
Log:
add patch script for 2.6 and 2.7 (JBDS-1838)
Modified:
trunk/download.jboss.org/jbosstools/updates/requirements/springide/build.xml
===================================================================
---
trunk/download.jboss.org/jbosstools/updates/requirements/springide/build.xml 2011-09-23
20:19:50 UTC (rev 35013)
+++
trunk/download.jboss.org/jbosstools/updates/requirements/springide/build.xml 2011-09-23
20:28:44 UTC (rev 35014)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project default="mirror">
+<project default="default">
<!-- run locally in Eclipse (to resolve p2 tasks) using these commandline options:
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}
@@ -14,7 +14,17 @@
org.eclipse.equinox.launcher.Main -vm ${JAVA_HOME} -consoleLog -nosplash -data /tmp \
-application org.eclipse.ant.core.antRunner \
-f ~/RHDS/updates/requirements/springide/build.xml -Ddestination=/tmp/pmd-repo
+
+ or, run local:
+
+ export JAVA_HOME=/opt/jdk1.6.0; \
+ java -cp ~/eclipse/eclipse370/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
\
+ org.eclipse.equinox.launcher.Main -vm ${JAVA_HOME} -consoleLog -nosplash -data /tmp \
+ -application org.eclipse.ant.core.antRunner -f build.xml
-->
+ <target name="default"
depends="mirror,apply.patch,regenerate.metadta" />
+ <target name="patch.and.regen"
depends="apply.patch,regenerate.metadta" />
+
<target name="mirror">
<!-- Other URLs:
http://dist.springframework.org/release/IDE/
@@ -22,11 +32,12 @@
http://dist.springsource.com/release/TOOLS/update/e3.6/
-->
<property name="URL"
value="http://dist.springsource.com/release/TOOLS/update/e3.6/" />
- <property name="destination"
value="/home/nboldt/tru/download.jboss.org/jbosstools/updates/requir...
/>
+ <property name="destination"
value="/home/nboldt/tru/download.jboss.org/jbosstools/updates/requir...
/>
+ <property name="siteVersion" value="2.6.0.201103160035" />
<property name="compress" value="true" />
<p2.mirror>
- <repository location="file:${destination}/2.6.0.201103160035/"
name="springide plugins for Eclipse 3.6 - 3.7" />
+ <repository location="file:${destination}/${siteVersion}/"
name="springide plugins for Eclipse 3.6 - 3.7" />
<source>
<repository location="${URL}" />
</source>
@@ -41,9 +52,43 @@
<iu id="org.springframework.ide.eclipse.autowire.feature.feature.group"
/>
<iu id="org.springframework.ide.eclipse.mylyn.feature.feature.group"
/>
- <slicingoptions includefeatures="true" followstrict="true"
latestversiononly="true" platformfilter="true" />
+ <slicingoptions includefeatures="true" followstrict="true"
latestversiononly="false" platformfilter="true" />
</p2.mirror>
- <p2.publish.featuresAndBundles
metadataRepository="file:${destination}/2.6.0.201103160035/"
artifactRepository="file:${destination}/2.6.0.201103160035/"
publishartifacts="true" source="${destination}/2.6.0.201103160035/"
compress="${compress}" />
</target>
+
+ <target name="apply.patch">
+ <echo>JBDS-1838 :: Apply patch to disable SpringIDE welcome page</echo>
+ <!-- unzip jar
+ replace about.ini
+ replace MANIFEST.MF
+ delete welcome.xml META-INF/VMWARE.*
+ zip jar -->
+ <copy
file="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse_${siteVersion}-RELEASE.jar"
tofile="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse_${siteVersion}-RELEASE_ORIGINAL.jar"
/>
+ <unzip
src="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse_${siteVersion}-RELEASE.jar"
dest="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse"
/>
+ <echo
file="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse/about.ini">
+aboutText=%title
+featureImage=feature_image.png
+</echo>
+ <echo
file="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse/META-INF/MANIFEST.MF">Manifest-Version:
1.0
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %providerName
+Bundle-Version: ${siteVersion}-RELEASE
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.springframework.ide.eclipse
+</echo>
+ <delete quiet="true">
+ <fileset
dir="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse"
includes="welcome.xml" />
+ <fileset
dir="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse/META-INF"
includes="eclipse.inf, VMWARE.RSA, VMWARE.SF" />
+ </delete>
+ <zip
destfile="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse_${siteVersion}-RELEASE.jar"
basedir="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse/"
/>
+ <delete
dir="${destination}/${siteVersion}/plugins/org.springframework.ide.eclipse/"
quiet="true" />
+ </target>
+
+ <target name="regenerate.metadta">
+ <p2.publish.featuresAndBundles
metadataRepository="file:${destination}/${siteVersion}/"
artifactRepository="file:${destination}/${siteVersion}/"
publishartifacts="true" source="${destination}/${siteVersion}/"
compress="${compress}" />
+ </target>
+
</project>