-
david_williams authoreddavid_williams authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
runAntRunner.sh 1.03 KiB
#!/usr/bin/env bash
# specify devworkspace and JRE to use to runEclipse
devworkspace=~/workspace-antRunner
BUILDFILE=$1
if [ -e $BUILDFILE ]
then
BUILDFILESTR=" -file $BUILDFILE"
shift
fi
extraArgs="$@"
echo "BUILDFILE: $BUILDFILE"
echo "extraArgs: ${extraArgs}"
# remember to leave no slashes on filename in source command,
# (the commonVariations.shsource file, that is)
# so that users path is used to find it (first)
if [ -z $BUILD_INITIALIZED ]
then
source commonVariations.shsource
source ${RELENG_CONTROL}/commonComputedVariables.shsource
fi
export JAVA_HOME=${JAVA_5_HOME}
devJRE=$JAVA_HOME/jre/bin/java
ibmDevArgs="-Xms128M -Xmx256M -Dosgi.ws=gtk -Dosgi.os=linux -Dosgi.arch=x86 ${extraArgs}"
devArgs=$ibmDevArgs
echo dev: $0
echo
echo devworkspace: $devworkspace
echo
echo devJRE: $devJRE
$devJRE -version
echo
${ECLIPSE_EXE} --launcher.suppressErrors -nosplash -debug -consolelog -console -data $devworkspace -application org.eclipse.ant.core.antRunner $BUILDFILESTR -vm $devJRE -vmargs $devArgs