ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: Modify all files of a certain name in a tree with dirs determined by patterns, using xslt
Date Tue, 24 May 2005 22:30:22 GMT
Looks like your exclude patterns are excluding the
subdirectories themselves, rather than the files they
contain.  Try adding, at minimum, a file separator:

>    <exclude name="**/EJB/ABCRequestProcess*/" />
>    <exclude name="**/EJB/ABCReplyProcess*/" />
>    <exclude name="**/EJB/DEFRequestProcess*/" />
>    <exclude name="**/EJB/DEFReplyProcess*/" />

HTH,
Matt

--- "Karr, David" <david.karr@wamu.net> wrote:
> Yes, I've tried it.  I see that the documentation
> says that should work,
> but it isn't excluding the patterns I specify for
> "exclude".
> 
> The following is my current target (modified a bit):
> 
>  <target name="restrictMaxBeans">
>   <xslt style="../addMBIFP.xsl" extension=".xml"
> force="true"
>   
>
includes=".workshop/stuffWeb/EJB/**/META-INF/weblogic-ejb-jar.xml"
>    destdir="stuff">
>    <exclude name="**/EJB/ABCRequestProcess*"/>
>    <exclude name="**/EJB/ABCReplyProcess*"/>
>    <exclude name="**/EJB/DEFRequestProcess*"/>
>    <exclude name="**/EJB/DEFReplyProcess*"/>
>    <xmlcatalog>
>     <dtd publicId="-//BEA Systems, Inc.//DTD
> WebLogic 8.1.0 EJB//EN"
>          location="./weblogic810-web-jar.dtd"/>
>    </xmlcatalog>
>   </xslt>
>  </target>
> 
> There are 18 subdirs of "EJB".  When I run this, it
> processes all 18,
> including the four I'm trying to exclude.  I see it
> process those
> directories in the "xslt" task output.
> 
> > -----Original Message-----
> > From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
> > Sent: Tuesday, May 24, 2005 3:16 PM
> > To: Ant Users List
> > Subject: RE: Modify all files of a certain name in
> a tree 
> > with dirs determined by patterns, using xslt
> > 
> > 
> > (re Ant pattern spec)
> > --- "Karr, David" <david.karr@wamu.net> wrote:
> > > Uh, the "Foo*" part?
> > 
> > From the manual:
> > 
> > '*' matches zero or more characters, '?' matches
> one
> > character.
> > 
> > Tests I run work for me.  Have you actually tried
> it?
> > 
> > -Matt
> > 
> > 
> > 
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Small Business - Try our new Resources site
> 
> > http://smallbusiness.yahoo.com/resources/
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> > 
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message