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 16:16:58 GMT
I think you have to copy them to a tmp-dir. <copy> supports nested
<mapper>s.
<war> does not.

Jan

> -----Original Message-----
> From: Thomas Quas [mailto:tquas@yahoo.com]
> Sent: Tuesday, October 14, 2003 6:11 PM
> To: user@ant.apache.org
> Subject: RE: <war> libraries & flat hierarchy
> 
> 
> Hmm, now I have
> 
>          <war warfile="${build.home}/my.war" 
> webxml="${build.etc}/web.xml">
>              <lib dir="${project.lib}">
>                  <include name="**/*.jar"/>
>  		 <mapper type="flatten"/>
>              </lib>
> 
> which results in
> 
> BUILD FAILED
> file:/projects/my/build.xml:655: Class
> org.apache.tools.ant.types.ZipFileSet doesn't support the 
> nested "mapper"
> element.
> 
> ??????
> 
> 
> -tom
> 
> 
> On Tue, 14 Oct 2003 17:14:09 +0200, Jan.Materne wrote:
> 
> > 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
> >>
> -- 
> 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