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

public abstract Class AbstractAccessTask

extends ExecuteOn
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.optional.unix.Chgrp, org.apache.tools.ant.taskdefs.optional.unix.Chown
Imports
java.io.File, org.apache.tools.ant.BuildException, org.apache.tools.ant.taskdefs.ExecuteOn, org.apache.tools.ant.taskdefs.condition.Os, org.apache.tools.ant.types.Commandline, .FileSet

Since
Ant 1.6

Field Summary

Inherited from org.apache.tools.ant.taskdefs.ExecuteOn:
destDirfilesetsmappermapperElementsrcFilePossrcIsFirsttargetFilePostype

Constructor Summary

AccessConstructor and Description
public
AbstractAccessTask()

Chmod task for setting file and directory permissions.

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

true if a valid OS, for unix this is always true, otherwise use the superclasses' test (user set).
isValidOs
()

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

Automatically approve Unix OS's.
public void
setAddsourcefile(boolean
A user supplied boolean we won't accept.
b
)

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

Prevent the use of the addsourcefile attribute.
public void
setCommand(Commandline
A user supplied command line that we won't accept.
cmdl
)

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

Prevent the user from specifying a different command.
public void
setFile(File
the file to modify
src
)

Set the file which should have its access attributes modified.

public void
setSkipEmptyFilesets(boolean
A user supplied boolean we won't accept.
skip
)

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

Prevent the skipping of empty filesets
Inherited from org.apache.tools.ant.taskdefs.ExecuteOn:
addaddaddDirsetaddFilelistaddFilesetcheckConfigurationcreateHandlercreateMappercreateSrcfilecreateTargetfilegetCommandlinegetCommandlinegetDirsgetFilesgetFilesAndDirsrunExecrunParallelsetDestsetForcesetForwardslashsetIgnoremissingsetMaxParallelsetParallelsetRelativesetTypesetupRedirectorsetVerbose

Constructor Detail

AbstractAccessTaskback to summary
public AbstractAccessTask()

Chmod task for setting file and directory permissions.

Method Detail

isValidOsback to summary
protected boolean isValidOs()

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

Automatically approve Unix OS's.

Returns:boolean

true if a valid OS, for unix this is always true, otherwise use the superclasses' test (user set).

Annotations
@Override
setAddsourcefileback to summary
public void setAddsourcefile(boolean b)

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

Prevent the use of the addsourcefile attribute.

Parameters
b:boolean

A user supplied boolean we won't accept.

Annotations
@Override
setCommandback to summary
public void setCommand(Commandline cmdl)

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

Prevent the user from specifying a different command.

Parameters
cmdl:Commandline

A user supplied command line that we won't accept.

Annotations
@Override
setFileback to summary
public void setFile(File src)

Set the file which should have its access attributes modified.

Parameters
src:File

the file to modify

setSkipEmptyFilesetsback to summary
public void setSkipEmptyFilesets(boolean skip)

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

Prevent the skipping of empty filesets

Parameters
skip:boolean

A user supplied boolean we won't accept.

Annotations
@Override