It worked, thanks!
On Thu, Jul 23, 2009 at 19:08, Alex Boisvert <[email protected]> wrote:
> Here's something that works for me:
>
> unzip(_("target/jetty")=>_("jetty-6.1.17.zip")).tap do |t|
> t.from_path("jetty-6.1.17").exclude('pom.xml', 'webapps/*',
> 'examples/*', 'javadoc/*','extras/*')
> end
> task :build => _("target/jetty")
>
> I don't know if you're using the standard Jetty packaging (with root
> directory in zip called "jetty-6.x.x") and also it seems the trailing '/*'
> are necessary to exclude directories.
>
> alex
>
>
> On Thu, Jul 23, 2009 at 3:24 AM, Antoine Toulme
> <[email protected]>wrote:
>
>> Hi all,
>> I am trying to unzip an artifact while excluding some resources:
>> build unzip(_("target/jetty")=>artifact(JETTY)).exclude('pom.xml',
>> 'webapps/*', 'examples', 'javadoc', 'extras')
>>
>> However it doesn't seem to work: all the resources that should be excluded
>> are still present.
>>
>> What am I doing wrong here ? Any help is appreciated.
>>
>> Thanks,
>>
>> Antoine
>>
>
>