This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cli-archetype/src/main/resources/archetype-resources/src/main/assembly/resources/run.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
46 lines (34 sloc)
1.33 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This is the Bash Launcher. | |
# | |
# These are passed to the JVM. they're appended, so that you can predefine it from the shell | |
OPTS="$OPTS -Xms2G -Xmx4G" | |
# We always work with universal text encoding. | |
OPTS="$OPTS -Dfile.encoding=UTF-8" | |
# Monitoring with jvisualvm/jconsole (end-user doesn't usually need this) | |
#OPTS="$OPTS | |
# -Dcom.sun.management.jmxremote.port=5010 | |
# -Dcom.sun.management.jmxremote.authenticate=false | |
# -Dcom.sun.management.jmxremote.ssl=false" | |
# Used for invoking a command in debug mode (end user doesn't usually need this) | |
#OPTS="$OPTS -Xdebug -Xnoagent" | |
#OPTS="$OPTS -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" | |
# You shouldn't need to change the rest | |
# | |
### | |
cd "$(dirname $0)" | |
MYDIR="$(pwd)" | |
# Additional .jar files or other CLASSPATH directories can be set with this. | |
# (see http://kevinboone.net/classpath.html for details) | |
export CLASSPATH="$CLASSPATH:$MYDIR:$MYDIR/lib/*" | |
# See here for an explanation about ${1+"$@"} : | |
# http://stackoverflow.com/questions/743454/space-in-java-command-line-arguments | |
java \ | |
$OPTS uk.ac.ebi.example.App ${1+"$@"} | |
ex_code=$? | |
# We assume stdout is for actual output, that might be pipelined to some other command, the rest (including logging) | |
# goes to stderr. | |
# | |
echo Java Finished. Quitting the Shell Too. >&2 | |
echo >&2 | |
exit $ex_code |