2
0
Fork 0
imxmi/vasc-demo/vasc-demo-server/vasc-demo-server-build/src/main/scripts/startup.sh

40 lines
1.7 KiB
Bash
Raw Normal View History

2012-05-06 04:50:29 +00:00
#!/bin/sh
#
# Copyright (c) 2011, Willem Cazander
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this list of conditions and the
# following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
# the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
# THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Run in app dir
2012-11-26 15:08:45 +00:00
cd `dirname $0`/..;
2012-05-06 04:50:29 +00:00
# Config variables
JAVA="java";
2012-11-26 15:08:45 +00:00
JAVA_OPTS="-Xms128m -Xmx768m -XX:MaxPermSize=256m";
2012-11-21 19:45:08 +00:00
MAIN_CLASS="net.forwardfire.vasc.demo.server.core.VascTechDemoStartup";
2012-11-26 15:08:45 +00:00
CP=`echo libs/tomcat-el-api-* libs/*.jar | sed 's/ /:/g'`;
# todo: tomcat-el-api needs loaded before javaee-api for ELResolver config.
2012-05-06 04:50:29 +00:00
# Launch application
2012-05-14 20:01:04 +00:00
$JAVA $JAVA_OPTS -cp $CP $MAIN_CLASS;
2012-05-06 04:50:29 +00:00
# EOF