Message-ID: <570781246.3803.1422764520332.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3802_652060441.1422764520332" ------=_Part_3802_652060441.1422764520332 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A Gant script is a Groovy script that contains target definition= s, calls to a pre-defined AntBuilder, and operations on some other predefin= ed objects. The two main pre-defined objects are called includeTarget= s and includeTool. includeTargets is for including targets defined in= other Gant scripts or appropriately constructed classes. includeTool= is for including classes that provide services for use in a Gant file.&nbs= p; The following script shows some examples:=20 =20
In this case we include targets from a pre-compiled class called Clean. = This defined an object cleanPattern that we can add new patterns to. As wel= l as classes we can use files:=20 =20
It is also possible to use string literals for the situation where targe=
t definitions will be constructed programmatically.
As an example, if= we have a directory with a source code sub-directory containing Java and G= roovy source that needs compiling then we might have the Gant script:
Now from the command line we can issue the command "gant compile&qu=
ot; or "gant clean".
If we want a default target then we sp= ecify what it is: