Commit 2e733c42 authored by Andrew F. McKinney's avatar Andrew F. McKinney

add path varible to launch-buildserver script

parent acf61716
......@@ -9,6 +9,7 @@
EXECUTE=true
LAUNCH_BUILDSERVER_OPT=
LAUNCH_BUILDSERVER_LOG_PATH="../buildserver-log.out"
while true; do
case "$1" in
-c | --childProcessRamMb )
......@@ -21,16 +22,17 @@ while true; do
LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --requiredHosts $2"; shift 2;;
-d | --debug )
LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --debug $2"; shift 2;;
-l | --logPath )
LAUNCH_BUILDSERVER_LOG_PATH=$2; shift 2;;
-h | --help )
echo "Usage: [-c , --childProcessRamM ] [-m , --maxSimultaneousBuilds ] [-p , --port ] [-r , --requiredHosts ] [-d , --debug ]"; EXECUTE=false; break ;;
echo "Usage: [-c , --childProcessRamM ] [-m , --maxSimultaneousBuilds ] [-p , --port ] [-r , --requiredHosts ] [-d , --debug ] [-l , --logPath (ie. /home/buildserver/buildserver-log.out) ]"; EXECUTE=false; break ;;
-- ) EXECUTE=false; break ;;
- ) EXECUTE=false; break ;;
* ) break ;;
esac
echo $LAUNCH_BUILDSERVER_OPT;
done
if $EXECUTE; then
cd lib;
exec nohup java -Xmx1828m -cp activation-1.1.jar:jersey-bundle-1.3.jar:args4j-2.0.18.jar:jersey-multipart-1.3.jar:asm-3.1.jar:jettison-1.1.jar:BuildServer.jar:json.jar:CommonUtils.jar:jsr311-api-1.1.1.jar:CommonVersion.jar:localizer.jar:FastInfoset-1.2.2.jar:mail-1.4.jar:grizzly-servlet-webserver-1.9.18-i.jar:guava-10.0.1.jar:rome-0.9.jar:http-20070405.jar:sdklib.jar:jackson-core-asl-1.1.1.jar:stax-api-1.0-2.jar:jaxb-api-2.1.jar:wadl2java.jar:jaxb-impl-2.1.10.jar:wadl-cmdline.jar:jaxb-xjc.jar:wadl-core.jar:jdom-1.0.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer $LAUNCH_BUILDSERVER_OPT &> /home/buildserver/buildserver-log.out
exec nohup java -Xmx1828m -cp activation-1.1.jar:jersey-bundle-1.3.jar:args4j-2.0.18.jar:jersey-multipart-1.3.jar:asm-3.1.jar:jettison-1.1.jar:BuildServer.jar:json.jar:CommonUtils.jar:jsr311-api-1.1.1.jar:CommonVersion.jar:localizer.jar:FastInfoset-1.2.2.jar:mail-1.4.jar:grizzly-servlet-webserver-1.9.18-i.jar:guava-10.0.1.jar:rome-0.9.jar:http-20070405.jar:sdklib.jar:jackson-core-asl-1.1.1.jar:stax-api-1.0-2.jar:jaxb-api-2.1.jar:wadl2java.jar:jaxb-impl-2.1.10.jar:wadl-cmdline.jar:jaxb-xjc.jar:wadl-core.jar:jdom-1.0.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer $LAUNCH_BUILDSERVER_OPT &> $LAUNCH_BUILDSERVER_LOG_PATH &
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment