Hi,
I would like to use http://one-jar.sourceforge.net/ project to generate jar
containing all libs important for running project. This project has special
ant task to create such a jar:
<one-jar destfile="hello.jar" manifest="hello.mf">
<main>
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset file="${build.dir}/lib.jar" />
</lib>
</one-jar>
And this task need reference to manifest file. But I would like to reference
to gradle's one. Is it possible in some way?
My task in gradle looks like:
ant.taskdef(name: "oneJar", classname:
"com.simontuffs.onejar.ant.OneJarTask", classpath:
configurations.oneJar.asPath)
ant.oneJar(destfile: new File(distsDir, name + "-" + version + ".jar"),
manifest: ??manifest.file??) {
main() {
fileset(dir: classesDir)
}
lib() {
fileset(dir: libsDir)
}
}
Thanks a lot for any help ...
Jirka
--
View this message in context:
http://www.nabble.com/How-to-passed-gradle%27s-MANIFEST.MF-to-ant-task-tp25290754p25290754.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email