documentation:ant
Table of Contents
Ant
Ant is a standard java build tool.
Ant command should be run in the capsis4
installation directory.
Compilation
- simple compilation
ant compile
- to recompile all the files (e.g. after a 'svn update')
ant clean compile
To speed up compilation, you can configure ant to compile only specific modules : see build.properties
- to compile groovy files
ant compile-groovy
- full compilation ( is equivalent to
ant clean compile-groovy
)
ant compile-all
- to compile only one module (here stretch)
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*.
- Create a file
build.properties
in the root directory (the same as build.xml) - Edit the file as following if you want to compile only pp3, ventoug and mountain modules
include1=ventoug/** include2=pp3/** include3=mountain/** include4=
documentation/ant.txt ยท Last modified: 2021/12/13 09:28 by 127.0.0.1