Skip to content

Instantly share code, notes, and snippets.

@lossyrob
Created January 3, 2017 22:05
Show Gist options
  • Save lossyrob/7da81c066f8cb9228ff9f84830bc92d0 to your computer and use it in GitHub Desktop.
Save lossyrob/7da81c066f8cb9228ff9f84830bc92d0 to your computer and use it in GitHub Desktop.
JTS testbuilder run script
#!/bin/sh
#to change L&F if desired. Blank is default
JAVA_LOOKANDFEEL="-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel"
#JAVA_LOOKANDFEEL=""
JAVA_OPTS="-Xms256M -Xmx1024M"
APP_OPTS=""
if test "x$JTS_LIB_DIR" = "x"; then
JTS_LIB_DIR=`dirname $0`/jts-bin/lib/
fi
#---------------------------------#
# dynamically build the classpath #
#---------------------------------#
CP=
for i in `ls ${JTS_LIB_DIR}/*.jar`
do
CP=${CP}:${i}
done
#---------------------------#
# run the program #
#---------------------------#
MAIN=com.vividsolutions.jtstest.testbuilder.JTSTestBuilder
java -cp ".:${CP}" $JAVA_OPTS $JAVA_LOOKANDFEEL $MAIN $APP_OPTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment