how to run existing ant script from groovy

Posted by Omnipresent on Stack Overflow See other posts from Stack Overflow or by Omnipresent
Published on 2010-03-12T00:28:42Z Indexed on 2010/03/12 0:37 UTC
Read the original article Hit count: 691

Filed under:
|

my build is a 3 step process. run ant to build. transfer war to server. touch reload file.

I have transfered last two steps in groovy, using antbuilder. However, I am not able to run my existing ant script using groovy.

Usually I run it using the following command in dos prompt:

ant -Dsystem=mysystem -DsomeotherOption=true

from groovy when I try to do

"ant -Dsystem=mysystem -DsomeotherOption=true".execute()

it gives an error saying ant is not a recognized command.

How can I utilize my existing ant script in groovy?

© Stack Overflow or respective owner

Related posts about groovy

Related posts about ant