@@ -308,6 +308,9 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* sensitive, "false"|"off"|"no" when not.
* sensitive, "false"|"off"|"no" when not.
*/
*/
public void setCaseSensitive(boolean isCaseSensitive) {
public void setCaseSensitive(boolean isCaseSensitive) {
if (isReference()) {
throw tooManyAttributes();
}
this.isCaseSensitive = isCaseSensitive;
this.isCaseSensitive = isCaseSensitive;
}
}
@@ -317,6 +320,9 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* @param followSymlinks whether or not symbolic links should be followed
* @param followSymlinks whether or not symbolic links should be followed
*/
*/
public void setFollowSymlinks(boolean followSymlinks) {
public void setFollowSymlinks(boolean followSymlinks) {
if (isReference()) {
throw tooManyAttributes();
}
this.followSymlinks = followSymlinks;
this.followSymlinks = followSymlinks;
}
}
@@ -375,6 +381,11 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
}
}
public void setupDirectoryScanner(FileScanner ds, Project p) {
public void setupDirectoryScanner(FileScanner ds, Project p) {
if (isReference()) {
getRef(p).setupDirectoryScanner(ds, p);
return;
}
if (ds == null) {
if (ds == null) {
throw new IllegalArgumentException("ds cannot be null");
throw new IllegalArgumentException("ds cannot be null");
}
}
@@ -432,6 +443,9 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* @return whether any selectors are in this container
* @return whether any selectors are in this container
*/
*/
public boolean hasSelectors() {
public boolean hasSelectors() {
if (isReference() && getProject() != null) {
return getRef(getProject()).hasSelectors();
}
return !(selectors.isEmpty());
return !(selectors.isEmpty());
}
}
@@ -441,6 +455,10 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* @return whether any patterns are in this container
* @return whether any patterns are in this container
*/
*/
public boolean hasPatterns() {
public boolean hasPatterns() {
if (isReference() && getProject() != null) {
return getRef(getProject()).hasPatterns();
}
if (defaultPatterns.hasPatterns(getProject())) {
if (defaultPatterns.hasPatterns(getProject())) {
return true;
return true;
}
}
@@ -462,6 +480,9 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* @return the number of selectors in this container
* @return the number of selectors in this container
*/
*/
public int selectorCount() {
public int selectorCount() {
if (isReference() && getProject() != null) {
return getRef(getProject()).selectorCount();
}
return selectors.size();
return selectors.size();
}
}
@@ -486,6 +507,9 @@ public abstract class AbstractFileSet extends DataType implements Cloneable,
* @return an enumerator that goes through each of the selectors
* @return an enumerator that goes through each of the selectors
*/
*/
public Enumeration selectorElements() {
public Enumeration selectorElements() {
if (isReference() && getProject() != null) {
return getRef(getProject()).selectorElements();
}
return selectors.elements();
return selectors.elements();
}
}