blob: fb0a00be0432b358fe1867d81881941ffc3aa01c [file] [log] [blame]
david_williams5da7bc22010-07-29 15:41:22 +00001#!/usr/bin/env bash
2# specify devworkspace and JRE to use to runEclipse
3
4
david_williams75107232010-12-12 18:48:25 +00005devworkspace=~/workspace-antRunner
david_williams5da7bc22010-07-29 15:41:22 +00006
7BUILDFILE=$1
8
david_williamscc97d572011-02-15 03:41:06 +00009if [ -e $BUILDFILE ]
david_williams5da7bc22010-07-29 15:41:22 +000010then
11 BUILDFILESTR=" -file $BUILDFILE"
david_williamscc97d572011-02-15 03:41:06 +000012 shift
13fi
david_williams5da7bc22010-07-29 15:41:22 +000014
david_williamsb3f74cd2011-02-15 03:41:49 +000015extraArgs="$@"
david_williamscc97d572011-02-15 03:41:06 +000016
david_williams4ee7ba22011-02-15 04:15:33 +000017echo "BUILDFILE: $BUILDFILE"
david_williamscc97d572011-02-15 03:41:06 +000018echo "extraArgs: ${extraArgs}"
19
20# we MUST use java 5, when using process/pack artifacts!
david_williamsa6564532011-08-13 19:47:29 +000021JAVA_5_HOME=/shared/webtools/apps/ibm-java2-i386-50
22JAVA_6_HOME=/shared/webtools/apps/ibm-java-i386-60
Carl Andersonf1859b72013-10-07 14:01:59 -040023JAVA_7_HOME=/shared/webtools/apps/ibm-java-i386-70
david_williams6efe3102010-09-22 20:12:17 +000024export JAVA_HOME=${JAVA_5_HOME}
david_williams5da7bc22010-07-29 15:41:22 +000025devJRE=$JAVA_HOME/jre/bin/java
26
david_williamscc97d572011-02-15 03:41:06 +000027ibmDevArgs="-Xms128M -Xmx256M -Dosgi.ws=gtk -Dosgi.os=linux -Dosgi.arch=x86 ${extraArgs}"
david_williams5da7bc22010-07-29 15:41:22 +000028
29devArgs=$ibmDevArgs
30
31echo dev: $0
32echo
33echo devworkspace: $devworkspace
34echo
35echo devJRE: $devJRE
36$devJRE -version
37echo
38
david_williams49e229d2010-10-22 04:35:34 +000039ECLIPSE_INSTALL=/shared/webtools/apps/eclipse361/eclipse
david_williams5da7bc22010-07-29 15:41:22 +000040
david_williams75107232010-12-12 18:48:25 +000041$ECLIPSE_INSTALL/eclipse --launcher.suppressErrors -nosplash -debug -consolelog -console -data $devworkspace -application org.eclipse.ant.core.antRunner $BUILDFILESTR -vm $devJRE -vmargs $devArgs
david_williams5da7bc22010-07-29 15:41:22 +000042
43