org.apache.tools.ant.taskdefs.condition

Class IsFileSelected

    • Constructor Detail

      • IsFileSelected

        public IsFileSelected()
    • Method Detail

      • setFile

        public void setFile(java.io.File file)
        The file to check.
        Parameters:
        file - the file to check if if passes the embedded selector.
      • setBaseDir

        public void setBaseDir(java.io.File baseDir)
        The base directory to use.
        Parameters:
        baseDir - the base directory to use, if null use the project's basedir.
      • eval

        public boolean eval()
        Evaluate the selector with the file.
        Specified by:
        eval in interface Condition
        Returns:
        true if the file is selected by the embedded selector.