maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: filesets
Date Mon, 18 Sep 2006 08:03:30 GMT
Hi Alexander,

maybe you get more responses if you ask this question on the user's list of jakarta-commons
instead of Maven.

- Jörg

Morgovsky, Alexander (US - Glen Mills) wrote on Friday, September 15, 2006 6:50 PM:

> I am using org.apache.commons.io.filefilter.* to try to return the
> directories which have the src subdirectories in them, or effectively,
> to return what the "**/src" expression in Ant would do.
> However, it is
> not working, and I spent over 6 hours on this, so I would please
> apprciate any help given, because I am stuck.
> 
> FileFilter ffr = new WildcardFilter("**\\src");
> File[] files = baseDir.listFiles(ff);
> 
> I also tried **/src, but that didn't work.
> 
> Here is the situation:
> 
> A/resources
> B/src
> c/src
> 
> I want the selection to only return B and C because they have src
> subdirectories.  Thanks in advance for any help.
> 
> 
> This message (including any attachments) contains
> confidential information intended for a specific individual
> and purpose, and is protected by law.  If you are not the
> intended recipient, you should delete this message.
> 
> 
> Any disclosure, copying, or distribution of this message, or
> the taking of any action based on it, is strictly prohibited. [v.E.1]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message