Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class IsFileSelected

extends AbstractSelectorContainer
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
java.io.File, org.apache.tools.ant.BuildException, org.apache.tools.ant.types.selectors.AbstractSelectorContainer, .FileSelector, org.apache.tools.ant.util.FileUtils

This is a condition that checks to see if a file passes an embedded selector.

Field Summary

Modifier and TypeField and Description
private File
private File
private static final FileUtils

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the file is selected by the embedded selector.
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the selector with the file.
public void
setBaseDir(File
the base directory to use, if null use the project's basedir.
baseDir
)

The base directory to use.

public void
setFile(File
the file to check if if passes the embedded selector.
file
)

The file to check.

public void
Inherited from org.apache.tools.ant.types.selectors.AbstractSelectorContainer:
addaddAndaddContainsaddContainsRegexpaddCustomaddDateaddDependaddDepthaddDifferentaddExecutableaddFilenameaddMajorityaddModifiedaddNoneaddNotaddOraddOwnedByaddPosixGroupaddPosixPermissionsaddPresentaddReadableaddSelectoraddSizeaddSymlinkaddTypeaddWritableappendSelectorclonedieOnCircularReferencegetSelectorshasSelectorsselectorCountselectorElementstoString

Field Detail

baseDirback to summary
private File baseDir
fileback to summary
private File file
FILE_UTILSback to summary
private static final FileUtils FILE_UTILS

Constructor Detail

IsFileSelectedback to summary
public IsFileSelected()

Method Detail

evalback to summary
public boolean eval()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the selector with the file.

Returns:boolean

true if the file is selected by the embedded selector.

setBaseDirback to summary
public void setBaseDir(File baseDir)

The base directory to use.

Parameters
baseDir:File

the base directory to use, if null use the project's basedir.

setFileback to summary
public void setFile(File file)

The file to check.

Parameters
file:File

the file to check if if passes the embedded selector.

validateback to summary
public void validate()

Overrides org.apache.tools.ant.types.selectors.AbstractSelectorContainer.validate.

validate the parameters.