Browse Source

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
master
Peter Reilly 19 years ago
parent
commit
b89fc937a8
2 changed files with 7 additions and 2 deletions
  1. +2
    -0
      WHATSNEW
  2. +5
    -2
      src/main/org/apache/tools/ant/types/PatternSet.java

+ 2
- 0
WHATSNEW View File

@@ -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
========================================


+ 5
- 2
src/main/org/apache/tools/ant/types/PatternSet.java View File

@@ -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 {


Loading…
Cancel
Save