mx:Groovy
Attributes
Attribute | Description | Required |
---|
src | File containing Groovy statements. The directory containing the file is added to the classpath | Yes, unless statements enclosed within tags |
classpath | the classpath to use | No |
classpathref | the classpath to use, given as reference to a PATH defined elsewhere | No |
Nested Elements
Bindings
Name | Description |
---|
ant | an instance of AntBuilder that knows about the current ANT project |
project | the current ANT project |
pom | the current Moxie project object model |
properties | a Map of ANT properties |
target | the owning target that invoked this groovy script |
task | the wrapping task |
args | command line arguments, if any |
Example
<mx:groovy>
println "Hello World from ANT->mx:Groovy->System.out"
ant.echo "Hello World from ANT->mx:Groovy->ANT.echo"
println()
println "Coordinates: $pom.coordinates"
println "Developers: $pom.developers"
println "Licenses: $pom.licenses"
</mx:groovy>