Use ant inside init script

(Eric Deandrea) #1

Is the ant system available to be used inside an init script? If I try to do something like

rootProject.ant {
 // use some ant tasks

It says something about the root project not being available. Is there a way I can call out to ant to do something prior to exiting the init script?

(Luke Daley) #2

Ant isn’t available at this time. There’s no project object during init script execution because it’s before projects are loaded.

What do you need to do?

(Eric Deandrea) #3

To be honest I’m not sure I remember what I was trying to do :slight_smile: I’ve moved in a different direction since then :slight_smile:

(Luke Daley) #4

No problem, easy resolution for me then :slight_smile: