ant.buildDir = buildDir
ant.properties.buildDir = buildDir
ant.properties['buildDir'] = buildDir
ant.property(name: 'buildDir', location: buildDir)

ant.importBuild 'build.xml'

println ant.antProp
println ant.properties.antProp
println ant.properties['antProp']

ant.path(id: 'classpath', location: 'libs')
ant.references.classpath = ant.path(location: 'libs')
ant.references['classpath'] = ant.path(location: 'libs')

println ant.references.antPath
println ant.references['antPath']
