You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2002/01/10 13:10:39 UTC
Re: Excluding files
On Thu, 10 Jan 2002, Tom Callaghan <To...@roberthalf.co.uk>
wrote:
> <war warfile="H:\config\mydomain\applications\myBean.war"
> webxml="META-INF\web.xml">
> <webinf dir="WEB-INF"/>
> <classes dir="WEB-INF\classes\rhiuk\test"/>
> <exclude name="**/*.java"/>
> </war>
>
> But when I examine the myBean.war file all the .java files are
> there.
The <webinf> element is doing that. You probably wanted to say
<war warfile="H:\config\mydomain\applications\myBean.war"
webxml="META-INF\web.xml">
<webinf dir="WEB-INF">
<exclude name="classes/**" />
</webinf>
<classes dir="WEB-INF\classes\rhiuk\test"/>
<exclude name="**/*.java"/>
</classes>
</war>
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Excluding files
Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 10 Jan 2002, Diane Holt <ho...@yahoo.com> wrote:
> (the closing slash on the initial <classes> tag)
Oh, I missed that - yes that may be the real reason.
> (But I'm surprised nothing barked at you about syntax rather than
> simply creating your war-file with files you didn't want.)
The code doesn't check whether you really define a basedir when you
use the implicit fileset of <war> - the <exclude> element simply
doesn't do anything.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Excluding files
Posted by Diane Holt <ho...@yahoo.com>.
--- Stefan Bodewig <bo...@apache.org> wrote:
> The <webinf> element is doing that. You probably wanted to say
>
> <war warfile="H:\config\mydomain\applications\myBean.war"
> webxml="META-INF\web.xml">
> <webinf dir="WEB-INF">
> <exclude name="classes/**" />
> </webinf>
> <classes dir="WEB-INF\classes\rhiuk\test"/>
> <exclude name="**/*.java"/>
> </classes>
> </war>
Assuming that's really what you have (the closing slash on the initial
<classes> tag), what you probably really wanted to say is:
<classes dir="WEB-INF\classes\rhiuk\test">
<exclude name="**/*.java"/>
</classes>
(But I'm surprised nothing barked at you about syntax rather than simply
creating your war-file with files you didn't want.)
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>