org.apache.tools.ant.taskdefs.condition
Class IsFileSelected
- Cloneable, Condition, SelectorContainer
public class IsFileSelected
This is a condition that checks to see if a file passes an embedded selector.
boolean | eval()- Evaluate the selector with the file.
|
void | setBaseDir(File baseDir)- The base directory to use.
|
void | setFile(File file)- The file to check.
|
void | validate()- validate the parameters.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, getSelectors, hasSelectors, selectorCount, selectorElements, toString, validate |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes |
eval
public boolean eval()
Evaluate the selector with the file.
- eval in interface Condition
- true if the file is selected by the embedded selector.
setBaseDir
public void setBaseDir(File baseDir)
The base directory to use.
baseDir - the base directory to use, if null use the project's
basedir.
setFile
public void setFile(File file)
The file to check.
file - the file to check if if passes the embedded selector.