ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: <war> libraries & flat hierarchy
Date Tue, 14 Oct 2003 15:14:09 GMT
Use a  <mapper type="flatten"/>

Jan



> -----Original Message-----
> From: Thomas Quas [mailto:tquas@yahoo.com]
> Sent: Tuesday, October 14, 2003 5:08 PM
> To: user@ant.apache.org
> Subject: <war> libraries & flat hierarchy
> 
> 
> Hi All,
> 
> I have the following directory structure for third-party libraries:
> 	packageA/x.jar
> 	packageB/y.jar
> 
> Now, my build script tries to collect all libs and put them under
> WEB-INF/lib:
> 
>         <war warfile="${build.home}/my.war" 
> webxml="${build.etc}/web.xml">
>             <lib dir="${project.lib}">
>                 <include name="**/*.jar"/>
>             </lib>
> 	...
> 
> Unfortunately, this results in:
> 
> $ jar -tvf my.war
>      0 Wed Sep 10 12:18:38 CEST 2003 WEB-INF/lib/packageA/
> 311711 Wed Sep 10 12:18:38 CEST 2003 WEB-INF/lib/packageA/x.jar
>      0 Wed Sep 10 12:18:38 CEST 2003 WEB-INF/lib/packageB/
> 311711 Wed Sep 10 12:18:38 CEST 2003 WEB-INF/lib/packageB/y.jar
> ...
> 
> How can I flatten the hierarchy under lib? Is there an option 
> to filesets
> that I missed?
> 
> 
> Thanks for your suggestions,
> 
> -tom
> -- 
> thomas quas        | "The truth indeed has never been 
> preached by the Buddha,
> tquas@yahoo.com    |  seeing that one has to realize it 
> within oneself."
>                    |    -- Lamkara Sutra --
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message