Hi,

I did it this way.

Cheers, Matthias

---------------- snip ------------------------

configurations {
    packageIntoEar {
        description = "Files to be included in the EAR archive"
    }
}

dependencies {
packageIntoEar project(':myproject1'), project(':myproject2'), ... and so on ...
}

jar {
    extension = 'ear'

    manifest { from file('META-INF/MANIFEST.MF') }
    metaInf {
        from files('META-INF') { exclude('MANIFEST.MF') }
    }

    from configurations.packageIntoEar
}

---------------- snip ------------------------

Am 29.11.2010 um 13:04 schrieb richardm:


Hi I am creating an ear file using a Zip type task e.g.

task ear(type: Zip) {
   ...
}

How can I add a manifest file when doing this? I've tried adding a manifest
(as per the documentation for creating a Jar file), but it just get's
ignored. If I can't get this working I'll have to use the ant ear task, but would prefer not to as using a Zip task I can apply filters to some of my
files as they are added (e.g. my application.xml file).

Thanks.
--
View this message in context: 
http://gradle.1045684.n5.nabble.com/manifest-in-ear-file-tp3284282p3284282.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




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to