#!/bin/sh ###################################################################### # # GEOS - Geometry Engine Open Source # http://geos.osgeo.org # # Copyright (C) 2010-2017 Sandro Santilli # Copyright (C) 2010-2012 Martin Davis # # This is free software; you can redistribute and/or modify it under # the terms of the GNU Lesser General Public Licence as published # by the Free Software Foundation. # See the COPYING file for more information. # ###################################################################### if test "x$JTS_LIB_DIR" = "x"; then JTS_LIB_DIR="$HOME/.m2/repository/org/locationtech/jts" fi #---------------------------------# # dynamically build the classpath # #---------------------------------# THE_CLASSPATH= for i in `find ${JTS_LIB_DIR} -name '*.jar'` do THE_CLASSPATH=${THE_CLASSPATH}:${i} done #---------------------------------# # Handle/translate some switches # #---------------------------------# opts= while test `expr "$1" : '-'` = 1; do opt="$1" if test "$opt" = "-v"; then opt="-verbose"; fi opts="$opts $opt"; shift done #---------------------------# # run the program # #---------------------------# java -cp ".:${THE_CLASSPATH}" \ org.locationtech.jtstest.testrunner.TopologyTestApp $opts -files $@