Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Groovy Ant Task


Executes a series of Groovy statements. Statements can either be read in from a text file using the src attribute or from between the enclosing Groovy tags.

Required taskdef

Assuming groovy-all-VERSION.jar is in my.classpath you will need to declare this task at some point in the build.xml prior to using this task.

<groovy> attributes


srcFile containing Groovy statementsYes, unless statements enclosed within tags

available bindings

A number of bindings are in scope for use within your Groovy statements.


antan instance of AntBuilder that knows about the current ant project
projectthe current ant project
propertiesa Map of ant properties
targetthe owning target that invoked this groovy script
taskthe wrapping task, can access anything needed in



  • No labels