NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-java] Contribute to the netcdf-java library

  • To: Péricé Robin <perice.robin@xxxxxxxxx>
  • Subject: Re: [netcdf-java] Contribute to the netcdf-java library
  • From: Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
  • Date: Tue, 19 Apr 2016 09:17:41 +1200
Robin,

I use Eclipse Mars.1 (4.5.1) (Java EE) with the Buildship plugin installed from the update site:
http://download.eclipse.org/buildship/updates/e45/releases/1.0

In Eclipse, thredds is affected by this Gradle bug:
https://issues.gradle.org/browse/GRADLE-2327
Workaround in Eclipse is to find Windows / Preferences / Java / Compiler / Building / Circular dependencies and change it to Warning.

Once Buildship is installed and the compiler settings are adjusted, import the thredds Gradle projects with File / Import / Gradle / Gradle Project and select the top-level thredds directory. Eclipse should create an Eclipse project for each Gradle module.

Once Buildship has finished configuring and building the new projects, you can run the tests for a module in Eclipse by right-clicking on src/test/java and selecting Run As or Debug As then JUnit Test. You can also run tests in packages or individual test classes.

Kind regards,
Ben.

On 19/04/16 03:57, Christian Ward-Garrison wrote:
Hi Robin,

Here [1] is how to build and publish the library. Testing is tricky because
many of our tests rely on a large collection of datasets that is not (yet)
publicly available. However, I think we've almost completely isolated those
to the cdm-test and it modules. Testing other modules should work fine. For
example, if you're working on something in the cdm module, run:

./gradlew --info :cdm:test

to run only the tests in cdm. Unfortunately, I cannot provide you any
specific instruction about Eclipse (we use IntelliJ IDEA here), but I'd be
very surprised if Eclipse doesn't have a way to run tests in a Gradle-built
project.

Cheers,
Christian

[1]
http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/tutorial/SourceCodeBuild.html

On Mon, Apr 18, 2016 at 6:57 AM, Péricé Robin <perice.robin@xxxxxxxxx>
wrote:

Hello,

Is there any tutorial or documentation on how to build the library and run
the JUnit tests on Eclipse ?

Regards,

Robin

_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/




_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/


--
Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Director
Transient Software Limited <http://transient.nz/>
New Zealand



  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: