Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 Gant 1.9.

...

10 released,

...

2013-

...

11-

...

22T14:

...

08:00

...

+00:00

Gant is Groovy Ant Scripting

...

Code Block
includeTargets << gant.targets.Clean
cleanPattern << [ '**/*~' ,  '**/*.bak' ]
cleanDirectory << 'build'

target ( stuff : 'A target to do some stuff.' ) {
  println ( 'Stuff'
)   depends ( clean
)   echo ( message : 'A default message from Ant.'
)   otherStuff ( )
}

target ( otherStuff : 'A target to do some other stuff' ) {
  println ( 'OtherStuff'
)   echo ( message : 'Another message from Ant.'
)   clean ( )
}

setDefaultTarget ( stuff
)

In this script there are two targets, stuff and otherStuff -- the default target for this build is designated as stuff and is the target run when Gant is executed from the command line with no target as parameter.

...