diff --git a/org.eclipse.wtp.releng.webupdatesite/build-home/createMirrorSite.xml b/org.eclipse.wtp.releng.webupdatesite/build-home/createMirrorSite.xml new file mode 100644 index 0000000000000000000000000000000000000000..cde224d7b9281226d1209661f1b78a267fa22749 --- /dev/null +++ b/org.eclipse.wtp.releng.webupdatesite/build-home/createMirrorSite.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project + name="update" + default="update" + basedir="."> + + + <target name="update"> + <echo message="Creating duplicate update site based on what site.xml needs" /> + + <java + taskname="createDuplicateSite" + fork="true" + resultProperty="updateResult" + failonerror="false" + jvm="${java15-home}/bin/java" + classname="org.eclipse.equinox.launcher.Main"> + <classpath> + <fileset dir="${eclipse.home}/plugins"> + <include name="org.eclipse.equinox.launcher_*.jar" /> + </fileset> + </classpath> + + + <jvmarg value="-DcontinueOnError=true" /> + <arg value="-clean" /> + <arg value="-nosplash" /> + <arg value="-application" /> + <arg value="org.eclipse.update.core.standaloneUpdate" /> + <arg value="-data" /> + <arg value="${basedir}/buildworkspace" /> + <arg value="-debug" /> + <arg value="-consolelog" /> + <arg value="-command" /> + <arg value="mirror" /> + <arg value="-from" /> + <arg value="${from.update.site}" /> + <arg value="-to" /> + <arg value="${to.update.site}" /> + + </java> + + </target> +</project> diff --git a/org.eclipse.wtp.releng.webupdatesite/build-home/properties.shsource b/org.eclipse.wtp.releng.webupdatesite/build-home/properties.shsource index ebcd87b274ed9b967a430065165e3177978c72d5..e51cbcbc512f212eeceeb7e04f99041dcb05c75a 100644 --- a/org.eclipse.wtp.releng.webupdatesite/build-home/properties.shsource +++ b/org.eclipse.wtp.releng.webupdatesite/build-home/properties.shsource @@ -1,7 +1,9 @@ -eclipseLocation=${HOME}/eclipse-ppc-33RC3 +eclipseLocation=${HOME}/eclipse-ppc-33RC4 +java15-home=$HOME/ibm-java2-ppc-50/jre # should be no reason to ever change the following -updateToolsDir=org.eclipse.wtp.releng.webupdatesite \ No newline at end of file +updateToolsDir=org.eclipse.wtp.releng.webupdatesite + diff --git a/org.eclipse.wtp.releng.webupdatesite/build-home/runCreateMirrorSite.sh b/org.eclipse.wtp.releng.webupdatesite/build-home/runCreateMirrorSite.sh new file mode 100644 index 0000000000000000000000000000000000000000..36cbb1d2160a8741421c5bf93f9edb178f7391e1 --- /dev/null +++ b/org.eclipse.wtp.releng.webupdatesite/build-home/runCreateMirrorSite.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# script to duplicate a whole update site, based on it's site.xml + +source properties.shsource +#source parseSiteArg.shsource +from-update-site=$HOME/downloads/webtools/testUpdates +to-update-site=$HOME/downloads/webtools/testUpdates-mirror + +ant -f createMirrorSite.xml -Declipse.home=${eclipseLocation} -Dfrom.update.site=${from-update-site} -Dto.update.site=${to-update-site} +