Class Chgrp
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.ExecTask
org.apache.tools.ant.taskdefs.ExecuteOn
org.apache.tools.ant.taskdefs.optional.unix.AbstractAccessTask
org.apache.tools.ant.taskdefs.optional.unix.Chgrp
- All Implemented Interfaces:
java.lang.Cloneable
public class Chgrp extends AbstractAccessTask
Chgrp 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, typeFields inherited from class org.apache.tools.ant.taskdefs.ExecTask
cmdl, failOnError, newEnvironment, redirector, redirectorElement -
Constructor Summary
Constructors Constructor Description Chgrp()Chgrp task for setting unix group of a file. -
Method Summary
Modifier and Type Method Description protected voidcheckConfiguration()Ensure that all the required arguments and other conditions have been set.voidsetExecutable(java.lang.String e)We don't want to expose the executable attribute, so override it.voidsetGroup(java.lang.String group)Set the group attribute.Methods inherited from class org.apache.tools.ant.taskdefs.optional.unix.AbstractAccessTask
isValidOs, setAddsourcefile, setCommand, setFile, setSkipEmptyFilesetsMethods inherited from class org.apache.tools.ant.taskdefs.ExecuteOn
add, add, addDirset, addFilelist, addFileset, createHandler, createMapper, createSrcfile, createTargetfile, getCommandline, getCommandline, getDirs, getFiles, getFilesAndDirs, runExec, runParallel, setDest, setForce, setForwardslash, setIgnoremissing, setMaxParallel, setParallel, setRelative, setType, setupRedirector, setVerboseMethods inherited from class org.apache.tools.ant.taskdefs.ExecTask
addConfiguredRedirector, addEnv, createArg, createWatchdog, execute, getOs, getOsFamily, getResolveExecutable, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExecute, setAppend, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setInputString, setLogError, setNewenvironment, setOs, setOsFamily, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setVMLauncherMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
Chgrp
public Chgrp()Chgrp task for setting unix group of a file.
-
-
Method Details
-
setGroup
public void setGroup(java.lang.String group)Set the group attribute.- Parameters:
group- The new group for the file(s) or directory(ies)
-
checkConfiguration
protected void checkConfiguration()Ensure that all the required arguments and other conditions have been set.- Overrides:
checkConfigurationin classExecuteOn
-
setExecutable
public void setExecutable(java.lang.String e)We don't want to expose the executable attribute, so override it.- Overrides:
setExecutablein classExecTask- Parameters:
e- User supplied executable that we won't accept.
-