Thanks for the answer, I figured that it would boil down to something like
this...:thinking:...but you never know...

Someting like 

manifest {
    include '<PATH>'
}


could be nice...

Regards
Patrik


Rene Groeschke wrote:
> 
> Hello Patrik,
> I guess there is no sexy way to reuse an existing MANIFEST.MF file.
> You can use the following workaround to reuse your manifest:
> 
> import java.util.jar.Manifest
> import org.gradle.api.tasks.bundling.GradleManifest
> ...
> archive_jar.manifest = new GradleManifest(new Manifest(new File('./ 
> META-INF/MANIFEST.MF').newInputStream()))
> ...
> 
> I know, not sexy but it works. Maybe in future grails releases there  
> is a better way to reuse Manifest files!? Hans?
> 
> regards,
> René Gröschke
> 
> 
> Am 09.02.2009 um 10:54 schrieb Patrik Schalin:
> 
>>
>> Newbie question...
>>
>> I'm new to gradle (and groovy) but what I've seen so far looks  
>> really nice.
>> :jumping:
>>
>> My question is;
>>
>> Is there an easy way to re-use existing manifest files for a project.
>>
>> Some of my projects are Eclipse plugin project in which the manifest  
>> is
>> managed in the dev env i.e. add new plugin dependencies and/or  
>> exporting new
>> packages.
>>
>> So if I build with gradle I would really like to include the existing
>> manifests instead of generating new ones...and of course use them as  
>> base
>> for generating build classpath but I saw that this is planned for  
>> later
>> releases....
>>
>> Regards
>> Patrik
>> -- 
>> View this message in context:
>> http://www.nabble.com/Re-use-existing-MANIFEST.MF-tp21909779p21909779.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
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re-use-existing-MANIFEST.MF-tp21909779p21928947.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


Reply via email to