I have an Ant user task in my codebase that I need to use from Gradle. There are many examples of how to use a task that is packaged in a jar file, but this is different.
My taskdefshould look something like this:
ant.taskdef(
name: 'generator',
classname: 'MyGenerator',
classpath: ???
)
classpathshould include everything in bin/(where my code is compiled) and all the banks specified in the dependenciesbuild section of the script. How to fill in the gap?
I tried several different things, resulting in either obscure type messages The <taskdef> type doesn't support nested text dataor typical ones NoClassDefFoundError.
source
share