Table of Contents

Ant

Ant is a standard java build tool.

Ant command should be run in the capsis4 installation directory.

Compilation

ant compile
ant clean compile

To speed up compilation, you can configure ant to compile only specific modules : see build.properties

ant compile-groovy
ant compile-all 
ant compile -Dinclude1=stretch/** -Dpartialbuild=true

Execution

ant run

or to compile and run in one command

ant compile run

Test

ant test

or

ant runtest -Dtest="mytest/fullpath"

Javadoc

ant javadoc

Installer

ant installer -Dincludesrc="true" -Dmodules=mymodule/**,myothermodule/**

Update dependencies

ant resolve

Create a new module

ant createmodule -Dname=modulename -Dprefix=Prefix -Dauthor=Author -Dinstitute=Institute

Config : build.properties

Capsis ant script can be configured to compile specific modules. This will *decrease considerably the compilation time*.

  1. Create a file build.properties in the root directory (the same as build.xml)
  2. Edit the file as following if you want to compile only pp3, ventoug and mountain modules
include1=ventoug/**
include2=pp3/**
include3=mountain/**
include4=