| 1 | = Contribute to the netcdf-java library = |
| 2 | Robin, |
| 3 | |
| 4 | I use Eclipse Mars.1 (4.5.1) (Java EE) with the Buildship plugin installed from the update site: |
| 5 | http://download.eclipse.org/buildship/updates/e45/releases/1.0 |
| 6 | |
| 7 | In Eclipse, thredds is affected by this Gradle bug: |
| 8 | https://issues.gradle.org/browse/GRADLE-2327 |
| 9 | Workaround in Eclipse is to find Windows / Preferences / Java / Compiler / Building / Circular dependencies and change it to Warning. |
| 10 | |
| 11 | 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. |
| 12 | |
| 13 | 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. |
| 14 | |
| 15 | Kind regards, |
| 16 | Ben. |
| 17 | |
| 18 | On 19/04/16 03:57, Christian Ward-Garrison wrote: |
| 19 | > Hi Robin, |
| 20 | > |
| 21 | > Here [1] is how to build and publish the library. Testing is tricky because |
| 22 | > many of our tests rely on a large collection of datasets that is not (yet) |
| 23 | > publicly available. However, I think we've almost completely isolated those |
| 24 | > to the cdm-test and it modules. Testing other modules should work fine. For |
| 25 | > example, if you're working on something in the cdm module, run: |
| 26 | > |
| 27 | > ./gradlew --info :cdm:test |
| 28 | > |
| 29 | > to run only the tests in cdm. Unfortunately, I cannot provide you any |
| 30 | > specific instruction about Eclipse (we use IntelliJ IDEA here), but I'd be |
| 31 | > very surprised if Eclipse doesn't have a way to run tests in a Gradle-built |
| 32 | > project. |
| 33 | > |
| 34 | > Cheers, |
| 35 | > Christian |
| 36 | > |
| 37 | > [1] |
| 38 | > http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/tutorial/SourceCodeBuild.html |
| 39 | > |
| 40 | > On Mon, Apr 18, 2016 at 6:57 AM, Péricé Robin <perice.robin@gmail.com> |
| 41 | > wrote: |
| 42 | > |
| 43 | >> Hello, |
| 44 | >> |
| 45 | >> Is there any tutorial or documentation on how to build the library and run |
| 46 | >> the JUnit tests on Eclipse ? |
| 47 | >> |
| 48 | >> Regards, |
| 49 | >> |
| 50 | >> Robin |
| 51 | >> |
| 52 | >> _______________________________________________ |
| 53 | >> netcdf-java mailing list |
| 54 | >> netcdf-java@unidata.ucar.edu |
| 55 | >> For list information or to unsubscribe, visit: |
| 56 | >> http://www.unidata.ucar.edu/mailing_lists/ |
| 57 | >> |
| 58 | > |
| 59 | > |
| 60 | > |
| 61 | > _______________________________________________ |
| 62 | > netcdf-java mailing list |
| 63 | > netcdf-java@unidata.ucar.edu |
| 64 | > For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/ |
| 65 | > |
| 66 | |
| 67 | -- |
| 68 | Ben Caradoc-Davies <ben@transient.nz> |
| 69 | Director |
| 70 | Transient Software Limited <http://transient.nz/> |
| 71 | New Zealand |
| 72 | |
| 73 | _______________________________________________ |
| 74 | netcdf-java mailing list |
| 75 | netcdf-java@unidata.ucar.edu |
| 76 | For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/ |
| 77 | |
| 78 | = For developers using THREDDS github = |