Building the GATK
From GSA
Contents |
Getting the Source
Make sure you have suitable versions of the JDK and Ant. See the Prerequisites section. You'll also need a recent version of Git, which you can find here.
- Download the source from our github repository.
git clone git://github.com/broadgsa/gatk.git destination_directory
Building the Source
- Use ant to build the source. The GATK uses the Ivy dependency manager to fetch all other dependencies.
cd destination_directory ant
Staying Up-to-date
- To get the latest updates once you already have a clone of our repository, do this from within your clone's directory:
git pull
- If you ever experience problems compiling or running the GATK after updating via a "git pull", try cleaning your clone's build directories before recompiling:
ant clean ant
Browsing the History
- You can browse our repository's commit history by going here
Other Useful Build Targets
- compile
- Compiles all java code in the source tree. Places generated classes in the build directory.
- dist
- Generates jar files, suitable for running via java -jar <YOUR JAR>. Places resulting jars in the dist subdirectory.
- resolve
- Resolves third-party dependencies. Downloads all third-party dependencies to the lib directory.
- javadoc
- Generates javadoc for the source tree. Places javadoc in the javadoc directory.
- clean
- Removes artifacts from old compilations / distributions.
View all available ant targets by running 'ant -projecthelp' in the directory containing build.xml.
