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

Class AbstractAccessTask

Implemented Interfaces:
Cloneable
Known Direct Subclasses:
Chgrp, Chown

public abstract class AbstractAccessTask
extends ExecuteOn

Since:
Ant 1.6

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.ExecuteOn

ExecuteOn.FileDirBoth

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.ExecuteOn

destDir, filesets, mapper, mapperElement, srcFilePos, srcIsFirst, targetFilePos, type

Fields inherited from class org.apache.tools.ant.taskdefs.ExecTask

cmdl, failOnError, newEnvironment, redirector, redirectorElement

Fields inherited from class org.apache.tools.ant.Task

target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Constructor Summary

AbstractAccessTask()
Chmod task for setting file and directory permissions.

Method Summary

protected boolean
isValidOs()
Automatically approve Unix OS's.
void
setAddsourcefile(boolean b)
Prevent the use of the addsourcefile atribute.
void
setCommand(Commandline cmdl)
Prevent the user from specifying a different command.
void
setFile(File src)
Set the file which should have its access attributes modified.
void
setSkipEmptyFilesets(boolean skip)
Prevent the skipping of empty filesets

Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOn

add, add, addDirset, addFilelist, addFileset, checkConfiguration, createHandler, createMapper, createSrcfile, createTargetfile, getCommandline, getCommandline, getDirs, getFiles, getFilesAndDirs, runExec, runParallel, setAddsourcefile, setDest, setForce, setForwardslash, setIgnoremissing, setMaxParallel, setParallel, setRelative, setSkipEmptyFilesets, setType, setVerbose, setupRedirector

Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask

addConfiguredRedirector, addEnv, checkConfiguration, createArg, createHandler, createWatchdog, execute, getResolveExecutable, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExec, runExecute, setAppend, setCommand, setDir, setError, setErrorProperty, setExecutable, setFailIfExecutionFails, setFailonerror, setInput, setInputString, setLogError, setNewenvironment, setOs, setOsFamily, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setVMLauncher, setupRedirector

Methods inherited from class org.apache.tools.ant.Task

bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Constructor Details

AbstractAccessTask

public AbstractAccessTask()
Chmod task for setting file and directory permissions.

Method Details

isValidOs

protected boolean isValidOs()
Automatically approve Unix OS's.
Overrides:
isValidOs in interface ExecTask
Returns:
true if a valid OS, for unix this is always true, otherwise use the superclasses' test (user set).

setAddsourcefile

public void setAddsourcefile(boolean b)
Prevent the use of the addsourcefile atribute.
Overrides:
setAddsourcefile in interface ExecuteOn
Parameters:
b - A user supplied boolean we won't accept.

setCommand

public void setCommand(Commandline cmdl)
Prevent the user from specifying a different command.
Overrides:
setCommand in interface ExecTask
Parameters:
cmdl - A user supplied command line that we won't accept.

setFile

public void setFile(File src)
Set the file which should have its access attributes modified.
Parameters:
src - the file to modify

setSkipEmptyFilesets

public void setSkipEmptyFilesets(boolean skip)
Prevent the skipping of empty filesets
Overrides:
setSkipEmptyFilesets in interface ExecuteOn
Parameters:
skip - A user supplied boolean we won't accept.