blob: d05e62058a2f4c9f5d5ba3584398cb5e2abed639 [file] [log] [blame]
david_williams8d6f2fc2010-08-13 20:17:32 +00001#!/usr/bin/env bash
2
3
4APP_NAME=org.eclipse.wtp.releng.tools.addRepoProperties
5
6devworkspace=./workspace
7
david_williams6efe3102010-09-22 20:12:17 +00008JAVA_5_HOME=/shared/webtools/apps/ibm-java2-sdk-5.0-12.1-linux-i386
9JAVA_6_HOME=/shared/webtools/apps/ibm-java-sdk-6.0-8.1-linux-i386
10export JAVA_HOME=${JAVA_6_HOME}
david_williams8d6f2fc2010-08-13 20:17:32 +000011devJRE=$JAVA_HOME/jre/bin/java
12
david_williams6efe3102010-09-22 20:12:17 +000013ibmDevArgs="-Xms128M -Xmx256M -Dosgi.ws=gtk -Dosgi.os=linux -Dosgi.arch=x86"
david_williams8d6f2fc2010-08-13 20:17:32 +000014
david_williamsd0090272010-08-13 20:39:20 +000015REPO="/shared/webtools/committers/wtp-R3.3.0-S/20100813105432/S-3.3.0M1-20100813105432/repository/"
16MIRRORURL="/webtools/downloads/drops/R3.3.0/S-3.3.0M1-20100813105432/repository/"
david_williams8d6f2fc2010-08-13 20:17:32 +000017
18if [ ! -z $MIRRORURL ]
19then
david_williamsd0090272010-08-13 20:39:20 +000020 MIRRORURL_ARG="http://www.eclipse.org/downloads/download.php?format=xml&file=${MIRRORURL}&protocol=http"
david_williams8d6f2fc2010-08-13 20:17:32 +000021else
22 MIRRORURL_ARG=""
23fi
24
25# remember, the '&' should NOT be unescaped here ... the p2 api (or underlying xml) will escape it.
26devArgs="$ibmDevArgs \
27-Dp2MirrorsURL=${MIRRORURL_ARG} \
28-DartifactRepoDirectory=${REPO} \
david_williamsd0090272010-08-13 20:39:20 +000029-Dp2StatsURI=http://download.eclipse.org/stats/webtools/repository/indigo -DstatsArtifactsSuffix=_indigo_M1 -DstatsTrackedArtifacts=org.eclipse.wst.jsdt.feature,org.eclipse.wst.xml_ui.feature,org.eclipse.wst.web_ui.feature,org.eclipse.jst.enterprise_ui.feature"
david_williams8d6f2fc2010-08-13 20:17:32 +000030
31
32echo "dev: " $0
33echo
34echo "devworkspace: " $devworkspace
35echo
36echo "devJRE: " $devJRE
37echo
38echo "devArgs: " $devArgs
39echo
40echo "APP_NAME: " $APP_NAME
41$devJRE -version
42echo
43
david_williams5bd19e22010-09-22 20:19:45 +000044ECLIPSE_INSTALL=/shared/webtools/apps/eclipse361/eclipse
david_williams8d6f2fc2010-08-13 20:17:32 +000045
46$ECLIPSE_INSTALL/eclipse -debug -nosplash -consolelog -console -data $devworkspace --launcher.suppressErrors -application ${APP_NAME} ${OTHER_ARGS} -vm $devJRE -vmargs $devArgs
47