All Implemented Interfaces:
Cloneable

public class Chown extends AbstractAccessTask
Chown equivalent for unix-like environments.
Since:
Ant 1.6
  • Constructor Details

    • Chown

      public Chown()
      Chown task for setting file and directory permissions.
  • Method Details

    • setOwner

      public void setOwner(String owner)
      Set the owner attribute.
      Parameters:
      owner - The new owner for the file(s) or directory(ies)
    • checkConfiguration

      protected void checkConfiguration()
      Ensure that all the required arguments and other conditions have been set.
      Overrides:
      checkConfiguration in class ExecuteOn
    • setExecutable

      public void setExecutable(String e)
      We don't want to expose the executable attribute, so override it.
      Overrides:
      setExecutable in class ExecTask
      Parameters:
      e - User supplied executable that we won't accept.