Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.unix

public Class Chgrp

extends AbstractAccessTask
Class Inheritance
Imports
org.apache.tools.ant.BuildException

Chgrp equivalent for unix-like environments.
Since
Ant 1.6

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public
Chgrp()

Chgrp task for setting unix group of a file.

Method Summary

Modifier and TypeMethod and Description
protected void
checkConfiguration()

Overrides org.apache.tools.ant.taskdefs.ExecuteOn.checkConfiguration.

Ensure that all the required arguments and other conditions have been set.
public void
setExecutable(String
User supplied executable that we won't accept.
e
)

Overrides org.apache.tools.ant.taskdefs.ExecTask.setExecutable.

We don't want to expose the executable attribute, so override it.
public void
setGroup(String
The new group for the file(s) or directory(ies)
group
)

Set the group attribute.

Inherited from org.apache.tools.ant.taskdefs.optional.unix.AbstractAccessTask:
isValidOssetAddsourcefilesetCommandsetFilesetSkipEmptyFilesets

Field Detail

haveGroupback to summary
private boolean haveGroup

Constructor Detail

Chgrpback to summary
public Chgrp()

Chgrp task for setting unix group of a file.

Method Detail

checkConfigurationback to summary
protected void checkConfiguration()

Overrides org.apache.tools.ant.taskdefs.ExecuteOn.checkConfiguration.

Ensure that all the required arguments and other conditions have been set.

Annotations
@Override
setExecutableback to summary
public void setExecutable(String e)

Overrides org.apache.tools.ant.taskdefs.ExecTask.setExecutable.

We don't want to expose the executable attribute, so override it.

Parameters
e:String

User supplied executable that we won't accept.

Annotations
@Override
setGroupback to summary
public void setGroup(String group)

Set the group attribute.

Parameters
group:String

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