FileDocCategorySizeDatePackage
AbstractAccessTask.javaAPI DocApache Ant 1.703604Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.unix

AbstractAccessTask

public abstract class AbstractAccessTask extends org.apache.tools.ant.taskdefs.ExecuteOn
since
Ant 1.6
ant.task
category="filesystem"

Fields Summary
Constructors Summary
public AbstractAccessTask()
Chmod task for setting file and directory permissions.

        super.setParallel(true);
        super.setSkipEmptyFilesets(true);
    
Methods Summary
protected booleanisValidOs()
Automatically approve Unix OS's.

return
true if a valid OS, for unix this is always true, otherwise use the superclasses' test (user set).

        return Os.isFamily("unix") && super.isValidOs();
    
public voidsetAddsourcefile(boolean b)
Prevent the use of the addsourcefile atribute.

ant.attribute
ignore="true"
param
b A user supplied boolean we won't accept.

        throw new BuildException(getTaskType()
            + " doesn\'t support the addsourcefile attribute", getLocation());
    
public voidsetCommand(org.apache.tools.ant.types.Commandline cmdl)
Prevent the user from specifying a different command.

ant.attribute
ignore="true"
param
cmdl A user supplied command line that we won't accept.

        throw new BuildException(getTaskType()
                                 + " doesn\'t support the command attribute",
                                 getLocation());
    
public voidsetFile(java.io.File src)
Set the file which should have its access attributes modified.

param
src the file to modify

        FileSet fs = new FileSet();
        fs.setFile(src);
        addFileset(fs);
    
public voidsetSkipEmptyFilesets(boolean skip)
Prevent the skipping of empty filesets

ant.attribute
ignore="true"
param
skip A user supplied boolean we won't accept.

        throw new BuildException(getTaskType() + " doesn\'t support the "
                                 + "skipemptyfileset attribute",
                                 getLocation());