UnidataBuilding TDS from Source Code


TDS Source Code Build

To build the TDS thredds.war file, you need the tds, lib, and common source code directories. They are available in our source code distribution (see the "Source Code Distribution" section) and from our SVN repository (see the "Source Code Repository" section).

Once you have a copy of the tds, lib, and common source code directories, 'cd' to the tds directory and run 'ant clean makeWar' (see note).

This will generate a tds/target directory which will contain a thredds.war file and a war directory.


Note: For TDS 4.2.5 and before, you must have catalina-ant.jar in your Ant installations lib/ directory. It is not required after TDS 4.2.5. (See the related FAQ entry here.)


TDS Source Code Distribution

TDS source code distributions are available from the THREDDS FTP site.

The TDS source code distribution has the following directory structure:

TDS Source Code Repository

The public THREDDS and CDM/netCDF-Java subversion repository is available at http://svn.unidata.ucar.edu/repos/thredds/. TDS 4.2 is currently our development code which is on the trunk.

Building the TDS thredds.war file as described above, requires checking out only three directories:


IntelliJ IDEA Project for TDS and CDM/netCDF-Java

As mentioned above, the intelliJ/threddsFull directory contains IntelliJ IDEA project files with modules for GRIB, BUFR, OPeNDAP, Unidata Common, CDM/netCDF-Java, ToolsUI, and TDS. You can modify this for the setup you have by simply removing the module dependencies and replacing them with binary class jar file dependencies (all the needed jar file are in the lib directory.

For the full setup, your directory structure should look like this:


Building the TDS with NetBeans

Thanks to Jon Blower (Univ of Reading) and the MyOcean project for writing up instructions for building the TDS with NetBeans.


THREDDS This document is maintained by Unidata and was last updated June 2010. Send comments to THREDDS support.