ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: containsregexp selector Ant 1.6.5
Date Fri, 05 Aug 2005 04:33:10 GMT
I would catch only ListResourceBundle, write them to file and have any eye on them:
- you dont catch imports
- you dont catch childs of childs
  public class MyRB extends LRB01 {...}
  public class LRB01 extends java.util.ListResourceBundle {...}

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Bill Rich [mailto:brich@webmethods.com] 
>Gesendet: Donnerstag, 4. August 2005 20:13
>An: 'Ant Users List'
>Betreff: containsregexp selector Ant 1.6.5
>
>Hi All,
>I am trying to use a fileset to find all the Java 
>ListResourceBundle files in a product. I am trying to use the 
>following:
>
><fileset id="lrbset" dir="${SOURCEFILESDIR}/${PRODUCT}" 
>includes="**/*">
>  <and>
>    <filename name="**/*.java"/>
>    <or>
>      <containsregexp 
>expression=".*\s+class\s+[^\s]+\s+extends\s+ListResourceBundle.*"/>
>      <containsregexp 
>expression=".*\s+class\s+[^\s]+\s+extends\s+java\.util\.ListRes
ourceBundle.*"/>
>    </or>
>  </and>
></fileset>
>
>Works great if "class", "extends", and "ListResourceBundle" 
>are on the same line in a file. If there is a line break in 
>there anywhere it does not find the file.
>
>Snippets from some example files:
>1)
><snip>
>public class LRB01 extends java.util.ListResourceBundle 
>implements ComponentLetterError  { </snip>
>
>2)
><snip>
>public class LRB03
>extends ListResourceBundle
>{
></snip>
>
>3)
><snip>
>public class LRB04 extends ListResourceBundle { </snip>
>
>The fileset finds examples 1 and 3 but not example 2.
>
>Any clues as to what to change or how to approach this differently?
>
>tia Bill
>
>
>
>---------------------------------------------------------------------
>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


Mime
View raw message