Class IsFileSelected
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.selectors.AbstractSelectorContainer
org.apache.tools.ant.taskdefs.condition.IsFileSelected
- All Implemented Interfaces:
- Cloneable,- Condition,- SelectorContainer
This is a condition that checks to see if a file passes an embedded selector.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.types.selectors.AbstractSelectorContaineradd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendSelector, clone, dieOnCircularReference, getSelectors, hasSelectors, selectorCount, selectorElements, toStringMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Constructor Details- 
IsFileSelectedpublic IsFileSelected()
 
- 
- 
Method Details- 
setFileThe file to check.- Parameters:
- file- the file to check if if passes the embedded selector.
 
- 
setBaseDirThe base directory to use.- Parameters:
- baseDir- the base directory to use, if null use the project's basedir.
 
- 
validatepublic void validate()validate the parameters.- Overrides:
- validatein class- AbstractSelectorContainer
 
- 
evalpublic boolean eval()Evaluate the selector with the file.
 
-