Converting Oracle Ant target to Gradle

I am attempting to Gradle-ize some old Ant scripts that I have for Oracle Service Bus. The original version is as follows:

https://gist.github.com/willis7/f64d292312609cb03359

My attempt is as follows:

https://gist.github.com/willis7/c8a64da4253a52039ee3

However, I get the error as listed in the Gist above. Any help with this one would be greatly received.

Sounds like a name conflict for ‘script’; try ‘delegate.script’ instead. Also, there is no ‘sys.argv’ in Java/Groovy.

Peter, thanks for the reply. I managed to put the script element into the python script I was calling afterwards. Hopefully that also explains where the sys.argv came from.