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

public Class Chown

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

Chown equivalent for unix-like environments.
Since
Ant 1.6

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public
Chown()

Chown task for setting file and directory permissions.

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
setOwner(String
The new owner for the file(s) or directory(ies)
owner
)

Set the owner attribute.

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

Field Detail

haveOwnerback to summary
private boolean haveOwner

Constructor Detail

Chownback to summary
public Chown()

Chown task for setting file and directory permissions.

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
setOwnerback to summary
public void setOwner(String owner)

Set the owner attribute.

Parameters
owner:String

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