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