Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-25 Thread Ian Turton
Looking at the latest (? Oxygen) version of eclipse - it seems to have
moved to be on the windows->preferences->errors/warnings page -> plugin
execution not covered set to Ignore.

Ian

On Fri, 25 Oct 2019 at 13:31, Luí­s Moreira de Sousa <
luis.de.so...@protonmail.ch> wrote:

> Hi Ian,
>
> I did not manage to do as you say, I could not find the option to ignore
> these error messages. Which Perspective are you using?
>
> Thank you.
>
> --
> Luís
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On Thursday, October 24, 2019 6:13 PM, Ian Turton 
> wrote:
>
> All the eclipse "errors" are actually warnings about maven lifestyle
> issues and if you right click them and set ignore in preferences they go
> away - there should be a note in the docs (or may be I only put that into
> the GeoServer ones).
>
> Ian
>
>
>

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


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-25 Thread Andrea Aime
Hi Luis,
I'm afraid there is a underlying assumption, that to use those instructions
one has to be proficient with Maven and Java.
I literally followed them verbatim, just generated the classpath and
replaced the _CLASS_PATH_ variable in the
second script with that value.

If you can make a PR to make that easier for newcomers, it would be welcomed

Cheers
Andrea


On Fri, Oct 25, 2019 at 1:30 PM Luí­s Moreira de Sousa <
luis.de.so...@protonmail.ch> wrote:

> Hi Andrea,
>
> thank you for taking the time to address this. The good news is that I
> manage to run the tests following your exact instructions. However, neither
> from the guide, nor from the instructions in the test file, would I gather
> the parameters passed to maven, or the correct folder from which to
> generate the class path. From the guide I had understood maven would have
> to be run from the root of the project.
>
> Cheers.
>
> --
> Luís
>
> ‐‐‐ Original Message ‐‐‐
> On Thursday, October 24, 2019 7:58 PM, Andrea Aime <
> andrea.a...@geo-solutions.it> wrote:
>
> I was referring specifically to the text in the Sinusoidal.txt file but...
> I tried it and it works?
>
> ~/devel/git-gt/modules/library/referencing $ mvn
> dependency:build-classpath -nsu
> [INFO] Scanning for projects...
> [INFO]
> [INFO] < org.geotools:gt-referencing
> >-
> [INFO] Building Referencing services 23-SNAPSHOT
> [INFO] [ jar
> ]-
> [INFO]
> [INFO] --- maven-dependency-plugin:2.8:build-classpath (default-cli) @
> gt-referencing ---
> [INFO] Dependencies classpath:
>
> /home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.jar:/home/aaime/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/home/aaime/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/home/aaime/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/aaime/.m2/repository/net/sf/geographiclib/GeographicLib-Java/1.49/GeographicLib-Java-1.49.jar:/home/aaime/.m2/repository/org/geotools/gt-sample-data/23-SNAPSHOT/gt-sample-data-23-SNAPSHOT.jar:/home/aaime/.m2/repository/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar:/home/aaime/.m2/repository/net/sourceforge/javacsv/javacsv/2.0/javacsv-2.0.jar:/home/aaime/.m2/repository/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar:/home/aaime/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/aaime/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
> [INFO]
> 
> [INFO] BUILD SUCCESS
> [INFO]
> 
> [INFO] Total time:  0.815 s
> [INFO] Finished at: 2019-10-24T19:55:57+02:00
> [INFO]
> 
>
> ~/devel/git-gt/modules/library/referencing ((72e0dcae10...)) $ java -cp
> target/classes:target/test-classes:/home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.j

Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-25 Thread Luí­s Moreira de Sousa via GeoTools-Devel
Hi Ian,

I did not manage to do as you say, I could not find the option to ignore these 
error messages. Which Perspective are you using?

Thank you.

--
Luís

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Thursday, October 24, 2019 6:13 PM, Ian Turton  wrote:

> All the eclipse "errors" are actually warnings about maven lifestyle issues 
> and if you right click them and set ignore in preferences they go away - 
> there should be a note in the docs (or may be I only put that into the 
> GeoServer ones).
>
> Ian___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-25 Thread Luí­s Moreira de Sousa via GeoTools-Devel
Hi Andrea,

thank you for taking the time to address this. The good news is that I manage 
to run the tests following your exact instructions. However, neither from the 
guide, nor from the instructions in the test file, would I gather the 
parameters passed to maven, or the correct folder from which to generate the 
class path. From the guide I had understood maven would have to be run from the 
root of the project.

Cheers.

--
Luís

‐‐‐ Original Message ‐‐‐
On Thursday, October 24, 2019 7:58 PM, Andrea Aime 
 wrote:

> I was referring specifically to the text in the Sinusoidal.txt file but... I 
> tried it and it works?
>
> ~/devel/git-gt/modules/library/referencing $ mvn dependency:build-classpath 
> -nsu
> [INFO] Scanning for projects...
> [INFO]
> [INFO] < org.geotools:gt-referencing 
> >-
> [INFO] Building Referencing services 23-SNAPSHOT
> [INFO] [ jar 
> ]-
> [INFO]
> [INFO] --- maven-dependency-plugin:2.8:build-classpath (default-cli) @ 
> gt-referencing ---
> [INFO] Dependencies classpath:
> /home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.jar:/home/aaime/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/home/aaime/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/home/aaime/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/aaime/.m2/repository/net/sf/geographiclib/GeographicLib-Java/1.49/GeographicLib-Java-1.49.jar:/home/aaime/.m2/repository/org/geotools/gt-sample-data/23-SNAPSHOT/gt-sample-data-23-SNAPSHOT.jar:/home/aaime/.m2/repository/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar:/home/aaime/.m2/repository/net/sourceforge/javacsv/javacsv/2.0/javacsv-2.0.jar:/home/aaime/.m2/repository/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar:/home/aaime/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/aaime/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time:  0.815 s
> [INFO] Finished at: 2019-10-24T19:55:57+02:00
> [INFO] 
> 
>
> ~/devel/git-gt/modules/library/referencing ((72e0dcae10...)) $ java -cp 
> target/classes:target/test-classes:/home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.jar:/home/aaime/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/home/aaime/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/home/aaime/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/aaime/.m2/repository/net/sf/geographiclib/GeographicLib-Java/1.49/GeographicLib-Java-1.49.jar:/home/aaime/.m2/repository/org/geotools/gt-sample-data/23-SNAPSHOT/gt-sample-data-23-SNAPSHOT.jar:/home/aaime/.m2/repository/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar:/home/aaime/

Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-24 Thread Andrea Aime
On Thu, Oct 24, 2019 at 6:08 PM Luí­s Moreira de Sousa <
luis.de.so...@protonmail.ch> wrote:

> Hi Andrea,
>
> I started by trying Eclipse, but all projects trigger errors related to
> the pom.xml file. So far, the only section in the documentation that
> provides information on how to set up a development environment with
> Eclipse is the build FAQ [0], which is possibly incomplete. If there is any
> other source of guidance on Eclipse from the developer's perspective please
> let me know.
>
> I have read the largest part of the user's guide and all examples refer to
> the command line. The fragments in the code files themselves also refer to
> the command line. It is now clear that this information is outdated. Should
> I report this with issues?
>

I was referring specifically to the text in the Sinusoidal.txt file but...
I tried it and it works?

~/devel/git-gt/modules/library/referencing $ mvn dependency:build-classpath
-nsu
[INFO] Scanning for projects...
[INFO]
[INFO] < org.geotools:gt-referencing
>-
[INFO] Building Referencing services 23-SNAPSHOT
[INFO] [ jar
]-
[INFO]
[INFO] --- maven-dependency-plugin:2.8:build-classpath (default-cli) @
gt-referencing ---
[INFO] Dependencies classpath:
/home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.jar:/home/aaime/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/home/aaime/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/home/aaime/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/aaime/.m2/repository/net/sf/geographiclib/GeographicLib-Java/1.49/GeographicLib-Java-1.49.jar:/home/aaime/.m2/repository/org/geotools/gt-sample-data/23-SNAPSHOT/gt-sample-data-23-SNAPSHOT.jar:/home/aaime/.m2/repository/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar:/home/aaime/.m2/repository/net/sourceforge/javacsv/javacsv/2.0/javacsv-2.0.jar:/home/aaime/.m2/repository/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar:/home/aaime/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/aaime/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time:  0.815 s
[INFO] Finished at: 2019-10-24T19:55:57+02:00
[INFO]


~/devel/git-gt/modules/library/referencing ((72e0dcae10...)) $ java -cp
target/classes:target/test-classes:/home/aaime/.m2/repository/org/ejml/ejml-ddense/0.34/ejml-ddense-0.34.jar:/home/aaime/.m2/repository/org/ejml/ejml-core/0.34/ejml-core-0.34.jar:/home/aaime/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/aaime/.m2/repository/org/geotools/gt-metadata/23-SNAPSHOT/gt-metadata-23-SNAPSHOT.jar:/home/aaime/.m2/repository/org/geotools/gt-opengis/23-SNAPSHOT/gt-opengis-23-SNAPSHOT.jar:/home/aaime/.m2/repository/systems/uom/systems-common-java8/0.7.2/systems-common-java8-0.7.2.jar:/home/aaime/.m2/repository/tec/uom/uom-se/1.0.8/uom-se-1.0.8.jar:/home/aaime/.m2/repository/javax/measure/unit-api/1.0/unit-api-1.0.jar:/home/aaime/.m2/repository/tec/uom/lib/uom-lib-common/1.0.2/uom-lib-common-1.0.2.jar:/home/aaime/.m2/repository/si/uom/si-quantity/0.7.1/si-quantity-0.7.1.jar:/home/aaime/.m2/repository/si/uom/si-units-java8/0.7.1/si-units-java8-0.7.1.jar:/home/aaime/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar:/home/aaime/.m2/repository/jgridshift/jgridshift-core/1.2/jgridshift-core-1.2.jar:/home/aaime/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/home/aaime/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/home/aaime/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/aaime/.m2/repository/net/sf/geographiclib/GeographicLib-Java/1.49/GeographicLib-Java-1.49.jar:/home/aaime/.m2/reposi

Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-24 Thread Ian Turton
All the eclipse "errors" are actually warnings about maven lifestyle issues
and if you right click them and set ignore in preferences they go away -
there should be a note in the docs (or may be I only put that into the
GeoServer ones).

Ian

On Thu, 24 Oct 2019 at 17:09, Luí­s Moreira de Sousa via GeoTools-Devel <
geotools-devel@lists.sourceforge.net> wrote:

> Hi Andrea,
>
> I started by trying Eclipse, but all projects trigger errors related to
> the pom.xml file. So far, the only section in the documentation that
> provides information on how to set up a development environment with
> Eclipse is the build FAQ [0], which is possibly incomplete. If there is any
> other source of guidance on Eclipse from the developer's perspective please
> let me know.
>
> I have read the largest part of the user's guide and all examples refer to
> the command line. The fragments in the code files themselves also refer to
> the command line. It is now clear that this information is outdated. Should
> I report this with issues?
>
> Thank you.
>
> [0] https://docs.geotools.org/latest/userguide/build/faq.html
>
> --
> Luís
>
> ‐‐‐ Original Message ‐‐‐
> On Wednesday, October 23, 2019 5:39 PM, Andrea Aime <
> andrea.a...@geo-solutions.it> wrote:
>
> Hi Luis,
> we normally run those tests from a full blown Java IDE, don't think anyone
> has tried to
> do that from the command line in ages, and it requires quite some
> familiarity with how both
> Java and Maven work (e.g., stuff like the test classes ending up in
> target/test/classes is
> something considered obvious).
> If I run ScriptTest from IntelliJ it works like a charm, if you're trying
> to develop some projection
> support I would warmly suggest to take the time to setup either IntelliJ
> or Eclipse, there should
> be guides in the dev guide (yes, also those are maintained best effort,
> but are definitely a bit
> more recent than the ScriptTest notes).
>
> Cheers
> Andrea
>
>
> ___
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>


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


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-24 Thread Luí­s Moreira de Sousa via GeoTools-Devel
Hi Andrea,

I started by trying Eclipse, but all projects trigger errors related to the 
pom.xml file. So far, the only section in the documentation that provides 
information on how to set up a development environment with Eclipse is the 
build FAQ [0], which is possibly incomplete. If there is any other source of 
guidance on Eclipse from the developer's perspective please let me know.

I have read the largest part of the user's guide and all examples refer to the 
command line. The fragments in the code files themselves also refer to the 
command line. It is now clear that this information is outdated. Should I 
report this with issues?

Thank you.

[0] https://docs.geotools.org/latest/userguide/build/faq.html

--
Luís

‐‐‐ Original Message ‐‐‐
On Wednesday, October 23, 2019 5:39 PM, Andrea Aime 
 wrote:

> Hi Luis,
> we normally run those tests from a full blown Java IDE, don't think anyone 
> has tried to
> do that from the command line in ages, and it requires quite some familiarity 
> with how both
> Java and Maven work (e.g., stuff like the test classes ending up in 
> target/test/classes is
> something considered obvious).
> If I run ScriptTest from IntelliJ it works like a charm, if you're trying to 
> develop some projection
> support I would warmly suggest to take the time to setup either IntelliJ or 
> Eclipse, there should
> be guides in the dev guide (yes, also those are maintained best effort, but 
> are definitely a bit
> more recent than the ScriptTest notes).
>
> Cheers
> Andrea___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-23 Thread Andrea Aime
Hi Luis,
we normally run those tests from a full blown Java IDE, don't think anyone
has tried to
do that from the command line in ages, and it requires quite some
familiarity with how both
Java and Maven work (e.g., stuff like the test classes ending up in
target/test/classes is
something considered obvious).
If I run ScriptTest from IntelliJ it works like a charm, if you're trying
to develop some projection
support I would warmly suggest to take the time to setup either IntelliJ or
Eclipse, there should
be guides in the dev guide (yes, also those are maintained best effort, but
are definitely a bit
more recent than the ScriptTest notes).

Cheers
Andrea

On Wed, Oct 23, 2019 at 5:22 PM Luí­s Moreira de Sousa via GeoTools-Devel <
geotools-devel@lists.sourceforge.net> wrote:

> Hello again,
>
> I located a .class file for ScriptRunner
> in modules/library/referencing/target/test-classes and added it to the
> class path. Like this the test can be run, but it is seeking the test
> scripts in the wrong folder:
>
> $ java -cp
> target/classes:target/test-classes:modules/library/referencing/target/test-classes:$CLASSPATH
> -ea org.geotools.referencing.ScriptRunner
> src/test/resources/org/geotools/referencing/test-data/scripts/Sinusoidal.txt
> Oct 23, 2019 5:15:42 PM org.geotools.referencing.ScriptRunner main
> INFO:
> java.io.FileNotFoundException:
> src/test/resources/org/geotools/referencing/test-data/scripts/Sinusoidal.txt
> (No such file or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.(FileInputStream.java:138)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at java.io.FileReader.(FileReader.java:58)
> at org.geotools.referencing.ScriptRunner.main(ScriptRunner.java:94)
>
> As I understand it, the running instructions given in the Sinusoidal.txt
> script are not correct. Any hint on how to run this test are welcome.
>
> Thank you.
>
> --
> Luís
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On Wednesday, October 23, 2019 3:59 PM, Luí­s Moreira de Sousa <
> luis.de.so...@protonmail.ch> wrote:
>
> Hi Mark,
>
> thank you for your reply.  mvn test-compile runs without errors, but it
> does not create the test-classes folder inside ./target.
>
> Thanks.
>
> --
> Luís
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On Monday, October 21, 2019 7:23 PM, mark  wrote:
>
> 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
>


-- 

Regards, Andrea Aime == GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
@geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by

Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-23 Thread Luí­s Moreira de Sousa via GeoTools-Devel
Hello again,

I located a .class file for ScriptRunner in 
modules/library/referencing/target/test-classes and added it to the class path. 
Like this the test can be run, but it is seeking the test scripts in the wrong 
folder:

$ java -cp 
target/classes:target/test-classes:modules/library/referencing/target/test-classes:$CLASSPATH
 -ea org.geotools.referencing.ScriptRunner 
src/test/resources/org/geotools/referencing/test-data/scripts/Sinusoidal.txt
Oct 23, 2019 5:15:42 PM org.geotools.referencing.ScriptRunner main
INFO:
java.io.FileNotFoundException: 
src/test/resources/org/geotools/referencing/test-data/scripts/Sinusoidal.txt 
(No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at java.io.FileReader.(FileReader.java:58)
at org.geotools.referencing.ScriptRunner.main(ScriptRunner.java:94)

As I understand it, the running instructions given in the Sinusoidal.txt script 
are not correct. Any hint on how to run this test are welcome.

Thank you.

--
Luís

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Wednesday, October 23, 2019 3:59 PM, Luí­s Moreira de Sousa 
 wrote:

> Hi Mark,
>
> thank you for your reply.  mvn test-compile runs without errors, but it does 
> not create the test-classes folder inside ./target.
>
> Thanks.
>
> --
> Luís
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On Monday, October 21, 2019 7:23 PM, mark  wrote:
>
>> 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


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-23 Thread Luí­s Moreira de Sousa via GeoTools-Devel
Hi Mark,

thank you for your reply.  mvn test-compile runs without errors, but it does 
not create the test-classes folder inside ./target.

Thanks.

--
Luís

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Monday, October 21, 2019 7:23 PM, mark  wrote:

> 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


Re: [Geotools-devel] ScriptRunner missing in class path

2019-10-21 Thread mark

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


[Geotools-devel] ScriptRunner missing in class path

2019-10-21 Thread Luí­s Moreira de Sousa via GeoTools-Devel
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?

Thank you.

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