Hi Stefan,

Thank you very much for this info. I am trying to use this in our custom
task some thing like this

Union lUnion = (Union) TaskUtils.getCurrentProject().getReference(
                    lRoot);
            Restrict lRestrict = new Restrict();
            lRestrict.setProject(TaskUtils.getCurrentProject());
            lRestrict.add(lUnion);
            String[] patterns = normalisePattern(aFileName);
            And and = new And();
            for (String lPattern : patterns)
            {
                Name name = new Name();
                name.setCaseSensitive(false);
                name.setName(lPattern);
                and.add(name);
                lRestrict.add(and);
            }

However, I am unable to find a way to get the values matching such an
expression. After doing the above, I am expecting some method in lRestrict
to find all the matching files. Some thing like DirectoryScanner.scan() and
then call to getIncludedFiles() gives the files which are matching the
criteria.

Could pl. let me know how should I get the matched files from the Restrict.

Regards,
Raja Nagendra Kumar








-- 
View this message in context: 
http://www.nabble.com/DirectoryScanner-cache-to-boost-performance-tp25422247p25454556.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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

Reply via email to