Use ant inside init script

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?

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?

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:

No problem, easy resolution for me then :slight_smile: