All Implemented Interfaces:
java.lang.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​(java.lang.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​(java.lang.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.