org.apache.tools.ant.taskdefs.optional.unix

Class AbstractAccessTask

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    Chgrp, Chown


    public abstract class AbstractAccessTask
    extends ExecuteOn
    Since:
    Ant 1.6
    • Constructor Detail

      • AbstractAccessTask

        public AbstractAccessTask()
        Chmod task for setting file and directory permissions.
    • Method Detail

      • setFile

        public void setFile(java.io.File src)
        Set the file which should have its access attributes modified.
        Parameters:
        src - the file to modify
      • setCommand

        public void setCommand(Commandline cmdl)
        Prevent the user from specifying a different command.
        Overrides:
        setCommand in class ExecTask
        Parameters:
        cmdl - A user supplied command line that we won't accept.
      • setSkipEmptyFilesets

        public void setSkipEmptyFilesets(boolean skip)
        Prevent the skipping of empty filesets
        Overrides:
        setSkipEmptyFilesets in class ExecuteOn
        Parameters:
        skip - A user supplied boolean we won't accept.
      • setAddsourcefile

        public void setAddsourcefile(boolean b)
        Prevent the use of the addsourcefile attribute.
        Overrides:
        setAddsourcefile in class ExecuteOn
        Parameters:
        b - A user supplied boolean we won't accept.
      • isValidOs

        protected boolean isValidOs()
        Automatically approve Unix OS's.
        Overrides:
        isValidOs in class ExecTask
        Returns:
        true if a valid OS, for unix this is always true, otherwise use the superclasses' test (user set).