On 29/11/2010, at 11:04 PM, richardm wrote:
>
> Hi I am creating an ear file using a Zip type task e.g.
>
> task ear(type: Zip) {
> ...
You'll need to use the Jar task. The Zip task does not understand about
manifests.
task ear(type: Jar) {
manifest {
// manifest stuff here
}
}
There are samples in the user guide at:
http://gradle.org/0.9-rc-3/docs/userguide/java_plugin.html#sub:manifest
You can also use the API documentation to see what you can do with a Manifest
object:
http://gradle.org/0.9-rc-3/docs/javadoc/org/gradle/api/java/archives/Manifest.html
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz