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

Class Chown


public class Chown
extends AbstractAccessTask

Chown equivalent for unix-like environments.
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

description, location, target, taskName, taskType, wrapper

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

project

Constructor Summary

Chown()
Chown task for setting file and directory permissions.

Method Summary

protected void
checkConfiguration()
Ensure that all the required arguments and other conditions have been set.
void
setExecutable(String e)
We don't want to expose the executable atribute, so overide it.
void
setOwner(String owner)
Set the owner atribute.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.unix.AbstractAccessTask

isValidOs, setAddsourcefile, setCommand, setFile, setSkipEmptyFilesets

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

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, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setVMLauncher, setupRedirector

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

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

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

getProject, log, log, setProject

Constructor Details

Chown

public Chown()
Chown task for setting file and directory permissions.

Method Details

checkConfiguration

protected void checkConfiguration()
Ensure that all the required arguments and other conditions have been set.
Overrides:
checkConfiguration in interface ExecuteOn

setExecutable

public void setExecutable(String e)
We don't want to expose the executable atribute, so overide it.
Overrides:
setExecutable in interface ExecTask
Parameters:
e - User supplied executable that we won't accept.

setOwner

public void setOwner(String owner)
Set the owner atribute.
Parameters:
owner - The new owner for the file(s) or directory(ies)

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.