Commit 1aae5d90 authored by andrew-mckinney's avatar andrew-mckinney

Merge pull request #40 from afmckinney/buildscript_log_path

add path varible to launch-buildserver script
parents 45e62492 2e733c42
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
EXECUTE=true EXECUTE=true
LAUNCH_BUILDSERVER_OPT= LAUNCH_BUILDSERVER_OPT=
LAUNCH_BUILDSERVER_LOG_PATH="../buildserver-log.out"
while true; do while true; do
case "$1" in case "$1" in
-c | --childProcessRamMb ) -c | --childProcessRamMb )
...@@ -21,16 +22,17 @@ while true; do ...@@ -21,16 +22,17 @@ while true; do
LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --requiredHosts $2"; shift 2;; LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --requiredHosts $2"; shift 2;;
-d | --debug ) -d | --debug )
LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --debug $2"; shift 2;; LAUNCH_BUILDSERVER_OPT="$LAUNCH_BUILDSERVER_OPT --debug $2"; shift 2;;
-l | --logPath )
LAUNCH_BUILDSERVER_LOG_PATH=$2; shift 2;;
-h | --help ) -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 ;;
- ) EXECUTE=false; break ;; - ) EXECUTE=false; break ;;
* ) break ;; * ) break ;;
esac esac
echo $LAUNCH_BUILDSERVER_OPT;
done done
if $EXECUTE; then if $EXECUTE; then
cd lib; 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 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