ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <>
Subject Re: Create WEB-INF/lib based on path-structure
Date Tue, 10 Jul 2007 06:55:09 GMT
On Tue, 2007-07-10 at 14:29 +0800, hezjing wrote:
>> Based on, how do
>> we know the element supports "refid" attribute?

You mean the 'id' attribute, right ?

Yes you are correct the documentation of fileset does not specify
support for id attribute. While using <patternset id="base.path"> inside
a <fileset> as the sample documented, makes WAR task give out error 
"base.path doesn't denote a zipfileset or a fileset"

> > >   <path id="base.path">
> > >   <fileset dir="lib">
> > >   <include name="**/*.jar"/>
> > >   </fileset>
> > >   </path> 

However, adding "id" attribute to <fileset> seems to be allowed.

<project name="wartasktest">

<fileset dir="lib" id="base.path">
	<include name="**/*.jar"/>

<target name="dist">
	<war jarfile="${war.filename}" webxml="${WEB-INF}/web.xml">
            <lib refid="base.path"/>

I have tried this out, and executing target 'dist' did create WAR file
including all the jars referenced in base.path in WEB-INF/lib. I am
using ant version 1.6.2.



Don't upload, just share :

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message