Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Modify all files of a certain name in a tree with dirs determined by pattern

Modify all files of a certain name in a tree with dirs determined by pattern

2005-05-24       - By Karr, David
Reply:     1     2     3     4     5     6     7     8  

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@(protected)]
> 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@(protected)> 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@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.