public boolean isSelected(final Resource r) { if (this.type == null) { throw new BuildException("The type attribute is required."); } final int i = this.type.getIndex(); return i == 2 || (r.isDirectory() ? (i == 1) : (i == 0)); }
public boolean isSelected(final Resource r) { if (this.type == null) { throw new BuildException("The type attribute is required."); } final int i = this.type.getIndex(); return i == 2 || (r.isDirectory() ? (i == 1) : (i == 0)); }