All Implemented Interfaces:
java.lang.Cloneable

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

    • Chgrp

      public Chgrp()
      Chgrp task for setting unix group of a file.
  • Method Details

    • setGroup

      public void setGroup​(java.lang.String group)
      Set the group attribute.
      Parameters:
      group - The new group 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.