org.apache.tools.ant.taskdefs.condition

Class IsFileSelected

public class IsFileSelected extends AbstractSelectorContainer implements Condition

This is a condition that checks to see if a file passes an embedded selector.
Method Summary
booleaneval()
Evaluate the selector with the file.
voidsetBaseDir(File baseDir)
The base directory to use.
voidsetFile(File file)
The file to check.
voidvalidate()
validate the parameters.

Method Detail

eval

public boolean eval()
Evaluate the selector with the file.

Returns: true if the file is selected by the embedded selector.

setBaseDir

public void setBaseDir(File baseDir)
The base directory to use.

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

setFile

public void setFile(File file)
The file to check.

Parameters: file the file to check if if passes the embedded selector.

validate

public void validate()
validate the parameters.
Copyright