ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: nested "fileset" error
Date Thu, 28 Oct 2004 15:25:57 GMT
The doc does not say "takes", it says "specifies" a fileset, i.e. it 
"is" a fileset.

So just use:
<lib dir="${build.dir}/src/lib" casesensitive="yes">
    <include file="test.jar"/>
</lib>

Peter
Scott Purcell wrote:

>I am trying to create a war file with certain jar files. According to the docs the <lib>
element takes a <fileset>. But upon execution of the script I an error. I have googled
this error, but do not see any known problems.
> 
>Error from compiler: "The <zipfileset> type doesn't support the nested "fileset"
element."
>
> 
>Does anyone know of a workaround to only select certain jars for my war file?
> 
> 
> 
><war
>     destfile="${build.dir}/dist/abc.war"
>     webxml="${build.dir}/src/abc/WEB-INF/web.xml">
>     <fileset dir="${build.dir}/src/abc"  includes="index.html" />
>     <classes dir="${build.dir}/build" />
>     <lib>
>                <fileset dir="${build.dir}/src/lib" casesensitive="yes">
>            <include file="test.jar" />
>         </fileset>
>     </lib>
> </war>
> 
>Thanks,
>Scott                                               
> 
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message