public class IsFileSelected extends AbstractSelectorContainer implements Condition
Constructor and Description |
---|
IsFileSelected() |
Modifier and Type | Method and Description |
---|---|
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, addReadable, addSelector, addSize, addType, addWritable, appendSelector, clone, dieOnCircularReference, getSelectors, hasSelectors, selectorCount, selectorElements, toString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public boolean eval()
public void setBaseDir(File baseDir)
baseDir
- the base directory to use, if null use the project's
basedir.public void setFile(File file)
file
- the file to check if if passes the embedded selector.public void validate()
validate
in class AbstractSelectorContainer