From b89fc937a8324a6303caca4e254f06175cc43078 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 6 Sep 2006 20:02:50 +0000 Subject: [PATCH] Bugzilla 36772: allow public access to PatternSet#hasPatterns git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@440853 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 2 ++ src/main/org/apache/tools/ant/types/PatternSet.java | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WHATSNEW b/WHATSNEW index a28e2bb78..2a8eda44f 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -30,6 +30,8 @@ Other changes: Bugzilla report 28865. * Convert SplashTask to use NOT sun internal classes. Bugzilla report 35619. +* Made PatterSet#hasPatterns public to allow custom filesets access. + Bugzilla report 36772. Changes from Ant 1.6.5 to Ant 1.7.0Beta1 ======================================== diff --git a/src/main/org/apache/tools/ant/types/PatternSet.java b/src/main/org/apache/tools/ant/types/PatternSet.java index b25f4d362..7d2a8255e 100644 --- a/src/main/org/apache/tools/ant/types/PatternSet.java +++ b/src/main/org/apache/tools/ant/types/PatternSet.java @@ -398,9 +398,12 @@ public class PatternSet extends DataType implements Cloneable { } /** - * helper for FileSet. + * Helper for FileSet classes. + * Check if there are patterns defined. + * @param p the current project. + * @return true if there are patterns. */ - boolean hasPatterns(Project p) { + public boolean hasPatterns(Project p) { if (isReference()) { return getRef(p).hasPatterns(p); } else {