blob: 4028ddfa08f712b5608d5f338cf60692fa552828 [file] [log] [blame]
david_williams8d6f2fc2010-08-13 20:17:32 +00001#!/usr/bin/env bash
2
david_williamsc5fb49a2011-06-20 16:40:27 +00003# this script is no longer used, routinely.
4# 'add properties' is now done as part of the promote script, in releng.control.
david_williams8d6f2fc2010-08-13 20:17:32 +00005
6APP_NAME=org.eclipse.wtp.releng.tools.addRepoProperties
7
8devworkspace=./workspace
9
david_williamsa6564532011-08-13 19:47:29 +000010JAVA_5_HOME=/shared/webtools/apps/ibm-java2-i386-50
11JAVA_6_HOME=/shared/webtools/apps/ibm-java-i386-60
david_williams6efe3102010-09-22 20:12:17 +000012export JAVA_HOME=${JAVA_6_HOME}
david_williams8d6f2fc2010-08-13 20:17:32 +000013devJRE=$JAVA_HOME/jre/bin/java
14
david_williams6efe3102010-09-22 20:12:17 +000015ibmDevArgs="-Xms128M -Xmx256M -Dosgi.ws=gtk -Dosgi.os=linux -Dosgi.arch=x86"
david_williams8d6f2fc2010-08-13 20:17:32 +000016
david_williams37798a12010-12-12 18:16:02 +000017REPO="/shared/webtools/committers/wtp-R3.3.0-I/20101209114749/S-3.3.0M4-20101209114749/repository"
18MIRRORURL="/webtools/downloads/drops/R3.3.0/S-3.3.0M4-20101209114749/repository/"
david_williams8d6f2fc2010-08-13 20:17:32 +000019
20if [ ! -z $MIRRORURL ]
21then
david_williamsd0090272010-08-13 20:39:20 +000022 MIRRORURL_ARG="http://www.eclipse.org/downloads/download.php?format=xml&file=${MIRRORURL}&protocol=http"
david_williams8d6f2fc2010-08-13 20:17:32 +000023else
24 MIRRORURL_ARG=""
25fi
26
27# remember, the '&' should NOT be unescaped here ... the p2 api (or underlying xml) will escape it.
28devArgs="$ibmDevArgs \
29-Dp2MirrorsURL=${MIRRORURL_ARG} \
30-DartifactRepoDirectory=${REPO} \
david_williamsae0c2192010-12-12 19:33:41 +000031-Dp2StatsURI=http://download.eclipse.org/stats/webtools/repository/indigo -DstatsArtifactsSuffix=_indigo_M4 -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 +000032
33
34echo "dev: " $0
35echo
36echo "devworkspace: " $devworkspace
37echo
38echo "devJRE: " $devJRE
39echo
40echo "devArgs: " $devArgs
41echo
42echo "APP_NAME: " $APP_NAME
43$devJRE -version
44echo
45
david_williams5bd19e22010-09-22 20:19:45 +000046ECLIPSE_INSTALL=/shared/webtools/apps/eclipse361/eclipse
david_williams8d6f2fc2010-08-13 20:17:32 +000047
48$ECLIPSE_INSTALL/eclipse -debug -nosplash -consolelog -console -data $devworkspace --launcher.suppressErrors -application ${APP_NAME} ${OTHER_ARGS} -vm $devJRE -vmargs $devArgs
49