On 10/21/19 11:59 AM, Luí­s Moreira de Sousa via GeoTools-Devel wrote:
Hi all,

I am trying to run the projections tests. They all complain of the absence of ScriptRunner, e.g.:

$ java -cp target/classes:target/test-classes:$CLASSPATH -ea org.geotools.referencing.ScriptRunner src/test/resources/org/geotools/referencing/test-data/scripts/Sinusoidal.txt Error: Could not find or load main class org.geotools.referencing.ScriptRunner

The ScriptRunner indeed does not feature in the class path produced by maven:

$ mvn dependency:build-classpath > mvn.out
$ cat mvn.out | grep ScriptRunner
$

Do I need to obtain the class path in a different way?

You need to use the "test" classpath as ScriptRunner is a test class: https://github.com/geotools/geotools/blob/master/modules/library/referencing/src/test/java/org/geotools/referencing/ScriptRunner.java

A compiled version should be in ./target/test-classes/ after compiling test sources (

|mvn test-compile|

should make that happen)

-M

_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to