You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Jeffrey A. Krzysztow" <Je...@bigfoot.com> on 2001/03/15 23:20:59 UTC

How to get taglib.tld into META-INF

Is there a way to have the jar task put a taglib.tld file in the
META-INF?

I'd like this to work without creating a directory called META-INF, then
jar-ing this directory.

The war task has a way to put things under WEB-INF, I'd like to know if
there is a similar way for META-INF?

Jeffrey A. Krzysztow

Re: How to get taglib.tld into META-INF

Posted by Stefan Bodewig <bo...@apache.org>.
Jeffrey A. Krzysztow <Je...@bigfoot.com> wrote:

> Is there a way to have the jar task put a taglib.tld file in the
> META-INF?
> 
> I'd like this to work without creating a directory called META-INF,
> then jar-ing this directory.

Yes - talking about Ant 1.3 - using a zipfileset and its prefix or
fullpath attribute.

Stefan

Re: zipfileset

Posted by Stefan Bodewig <bo...@apache.org>.
Larry Yates <ly...@adelphia.net> wrote:

> Expand doesn't support the nested "zipfileset" element

ATM only <zip>, <jar> and <war> support zipfileset - and I agree it
would be a *very* useful addition to <unzip>.

Stefan

zipfileset

Posted by Larry Yates <ly...@adelphia.net>.
Hi!
As an Ant newbie, I've checked the mail list and the Ant 1.3 api and manual,
but I can't figure out how to use "zipfileset".

I'd like to Unzip only certain files.

Here's what I have so far...

   <target name="restore">
      <unzip src="${dist.src}" dest="${deploy.home}" >
         <zipfileset dir="lib" prefix="infrastructure">
           <include name="*.html"/>
         </zipfileset>
      </unzip>
   </target>

However, I get the following BUILD FAILED message:

Expand doesn't support the nested "zipfileset" element

-Larry