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

Class Chgrp

public class Chgrp extends AbstractAccessTask

Chgrp equivalent for unix-like environments.

Since: Ant 1.6

UNKNOWN: category="filesystem"

Constructor Summary
Chgrp()
Chgrp task for setting unix group of a file.
Method Summary
protected voidcheckConfiguration()
Ensure that all the required arguments and other conditions have been set.
voidsetExecutable(String e)
We don't want to expose the executable atribute, so overide it.
voidsetGroup(String group)
Set the group atribute.

Constructor Detail

Chgrp

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

Method Detail

checkConfiguration

protected void checkConfiguration()
Ensure that all the required arguments and other conditions have been set.

setExecutable

public void setExecutable(String e)
We don't want to expose the executable atribute, so overide it.

Parameters: e User supplied executable that we won't accept.

setGroup

public void setGroup(String group)
Set the group atribute.

Parameters: group The new group for the file(s) or directory(ies)