blob: 638adb384bc18148cd4cc843449e41d447fc1392 [file] [log] [blame]
david_williams945c93a2010-08-23 19:09:06 +00001#!/usr/bin/env bash
2
3
david_williams32dd81a2010-09-03 04:13:08 +00004
david_williams945c93a2010-08-23 19:09:06 +00005APP_NAME=org.eclipse.equinox.p2.publisher.CategoryPublisher
6
7devworkspace=./workspace
8
david_williams6efe3102010-09-22 20:12:17 +00009JAVA_5_HOME=/shared/webtools/apps/ibm-java2-sdk-5.0-12.1-linux-i386
10JAVA_6_HOME=/shared/webtools/apps/ibm-java-sdk-6.0-8.1-linux-i386
11export JAVA_HOME=${JAVA_6_HOME}
david_williams945c93a2010-08-23 19:09:06 +000012devJRE=$JAVA_HOME/jre/bin/java
13
david_williams6efe3102010-09-22 20:12:17 +000014ibmDevArgs="-Xms128M -Xmx256M -Dosgi.ws=gtk -Dosgi.os=linux -Dosgi.arch=x86"
david_williams945c93a2010-08-23 19:09:06 +000015
david_williamsfb527212010-09-14 21:45:25 +000016DROPDIR="/opt/public/webtools/committers/wtp-R3.2.2-M/20100910064233/M-3.2.2-20100910064233"
david_williams945c93a2010-08-23 19:09:06 +000017
18APP_ARGS="\
19-metadataRepository file:/${DROPDIR}/repository/ \
20-artifactRepository file:/${DROPDIR}/repository/ \
david_williams32dd81a2010-09-03 04:13:08 +000021-categoryDefinition file:/${PWD}/wtp322category.xml \
david_williams945c93a2010-08-23 19:09:06 +000022-categoryQualifier \
23-compress"
24
25# remember, the '&' should NOT be unescaped here ... the p2 api (or underlying xml) will escape it.
26devArgs="$ibmDevArgs"
27
28echo "dev: " $0
29echo
30echo "devworkspace: " $devworkspace
31echo
32echo "devJRE: " $devJRE
33echo
34echo "devArgs: " $devArgs
35echo
36echo "APP_NAME: " $APP_NAME
37echo "APP_ARGS: " ${APP_ARGS}
38
39$devJRE -version
40
41
42echo
43
david_williams5bd19e22010-09-22 20:19:45 +000044ECLIPSE_INSTALL=/shared/webtools/apps/eclipse361/eclipse
david_williams945c93a2010-08-23 19:09:06 +000045
46$ECLIPSE_INSTALL/eclipse -debug -nosplash -consolelog -console -data $devworkspace --launcher.suppressErrors -application ${APP_NAME} ${APP_ARGS} -vm $devJRE -vmargs $devArgs
47