The Build System

Compiling and deploying your application

The Riot project-skeleton comes with a ready-to-use Ant build file that can be used to compile, package and deploy your application. Here is an overview of the available targets:

configure - Configures the project by merging the selected configuration files. You can find a detailed documentation of the configuration system here.

resolve - Downloads all required libraries using the Ivy dependency manager. All runtime dependencies are copied /webapp/WEB-INF/lib. Dependencies that are provided by the container during runtime, but are required in order to compile the project using Ant are copied to /lib.

compile - Compiles the java sources in /src to /build/classes. Additionally all files matched by the jar.resource.patterns patternset are copied. By default these are all files in the /src tree that do not end with .java.

webapp - Copies the compiled classes (and merged properties) to /webapp/WEB-INF/classes.

jar - Creates a jar file containing all files in /build/classes.

war - Creates a WAR file.

deploy - Deploys a WAR file to a remote server via SCP.

report - Creates a dependency report as HTML file. Additionally a .dot file is created and rendered using GraphViz (if available). Note: If you are using a Mac you can import the .dot file into OmniGraffle.