ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Quas <tq...@yahoo.com>
Subject RE: <war> libraries & flat hierarchy
Date Wed, 15 Oct 2003 08:07:03 GMT
On Tue, 14 Oct 2003 18:16:58 +0200, Jan.Materne wrote:

> I think you have to copy them to a tmp-dir. <copy> supports nested
> <mapper>s.
> <war> does not.
> 
> Jan

True. Seems like this is one solution. However, exactly the one I want to
avoid. There is no point in copying files and introducing another source
of potential problems.

I guess I'd have to file a feature request!?


Thanks,

-tom

> 
>> -----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
>>
-- 
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
View raw message