Changes between Version 1 and Version 2 of TDS/Tutorial


Ignore:
Timestamp:
Mar 17, 2017 11:00:38 AM (5 years ago)
Author:
zequi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TDS/Tutorial

    v1 v2  
    11== Build and deploy into local from source ==
    22
    3           1. git clone git://github.com/Unidata/thredds.git thredds
    4           2. cd thredds
    5           3. git checkout 5.0.0          # to compile version 5, checkout any branch you want
    6           4. ./gradlew assemble          # gradle puts the war in ./tds/build/libs/
    7           5. cp ./tds/build/libs/tds-5.0.0-SNAPSHOT.war <TOMCAT_DIRECTORY>/webapps/thredds5.war
    8           6. <TOMCAT_DIRECTORY>/bin/startup.sh
     31. git clone git://github.com/Unidata/thredds.git thredds
     42. cd thredds
     53. git checkout 5.0.0          # to compile version 5, checkout any branch you want
     64. ./gradlew assemble          # gradle puts the war in ./tds/build/libs/
     75. cp ./tds/build/libs/tds-5.0.0-SNAPSHOT.war <TOMCAT_DIRECTORY>/webapps/thredds.war          # it is not recommended to change default context path (thredds)
     86. <TOMCAT_DIRECTORY>/bin/startup.sh
    99         
    1010After these steps, if tomcat is configured by default, the THREDDS server and the default datasets should be available in localhost:8080/thredds5
    1111
    12 Detailed info in https://github.com/Unidata/thredds/blob/5.0.0/docs/website/netcdf-java/tutorial/SourceCodeBuild.adoc
     12Detailed info in [1].
     13
     14== Import thredds in eclipse ==
     15
     16Once we have the git repo cloned:
     17
     181. Open eclipse
     192. Install the "Buildship gradle integration" plugin (in eclipse, Help -> Eclipse Marketplace and enter "gradle" in the search box)
     203. Restart eclipse
     214. Go to File -> Import... -> Existing Gradle project, select your thredds folder cloned from github and click next
     225. Select Gradle wrapper and click next
     236. Click finish. Now you should see a bunch of projects in your project explorer
     24
     25== Debugging thredds in eclipse ==
     26
     271. Start tomcat from a terminal: <TOMCAT_DIRECTORY>/bin/catalina.sh jpda start
     282. Go to eclipse and select, in the top bar, Run -> Debug configurations... -> Remote Java Application and click New
     293. Choose a name for the configuration, e.g. thredds.
     304. Click Browse... and select the tds project from the project selection window
     315. Be sure that the host is localhost and the port is 8000
     326. Click Apply
     33
     34If you add a breakpoint to some class and do some navigation in the browser, eclipse will stop the execution and will open the debug perspective.
     35
     36
     37[1] - https://github.com/Unidata/thredds/blob/5.0.0/docs/website/netcdf-java/tutorial/SourceCodeBuild.adoc