I've have the need to sign a jar file and the path I'm looking at is using
the ant.signJar task, but I would like to have a property to ask for getting
the jar file that this project is producing. I could get this jar file by
using the builtin libsDir property of the project:
jar.doLast {
jarfile = project.libsDir.path + File.separator + project.Name + '-' +
project.version + '.jar'
ant.signJar(jar: jarfile, ....
}
I just wonder if there is an easier way to find the resulting jar file from
a Java plugin project. Preferable available as a property.
Thanks,
Trond