tags:

views:

27

answers:

2

Hello, I am new to Gant.

I was trying

Ant.echo("hello gant")

but I am getting this error message:

No such property: Ant for class: build

Any help would be highly appreciated.

+1  A: 

In groovy you first need to create an instance of the AntBuilder class. The following code works:

def ant = new AntBuilder()

ant.echo("Hello world")
Mark O'Connor
A: 

Actually in grails ant is avaiale by default.

   ant.echo("hello gant")

You just need to use lower-case "a" in "ant" and run it. This should work fine.

Amrish