Created
January 3, 2017 22:05
-
-
Save lossyrob/7da81c066f8cb9228ff9f84830bc92d0 to your computer and use it in GitHub Desktop.
JTS testbuilder run script
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 | |
#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