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:

My attempt is as follows:

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.