|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.Chmod
Chmod equivalent for unix-like environments.
Nested Class Summary |
Nested classes 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 |
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 | |
Chmod()
Chmod task for setting file and directory permissions. |
Method Summary | |
protected void |
checkConfiguration()
Has the user set all necessary attributes? |
PatternSet.NameEntry |
createExclude()
Add a name entry on the exclude list. |
PatternSet.NameEntry |
createInclude()
Add a name entry on the include list. |
PatternSet |
createPatternSet()
Add a set of patterns. |
void |
execute()
Do the work. |
protected boolean |
isValidOs()
Is this the OS the user wanted? |
void |
setCommand(Commandline cmdl)
|
void |
setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not. |
void |
setDir(java.io.File src)
The directory which holds the files whose permissions must be changed. |
void |
setExcludes(java.lang.String excludes)
Sets the set of exclude patterns. |
void |
setExecutable(java.lang.String e)
The command to execute. |
void |
setFile(java.io.File src)
The file or single directory of which the permissions must be changed. |
void |
setIncludes(java.lang.String includes)
Sets the set of include patterns. |
void |
setPerm(java.lang.String perm)
The new permissions. |
void |
setProject(Project project)
Sets the project object of this component. |
void |
setSkipEmptyFilesets(boolean skip)
If no source files have been found or are newer than their corresponding target files, do not run the command. |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOn |
addFileset, createMapper, createSrcfile, createTargetfile, getCommandline, getCommandline, getDirs, getFiles, runExec, setDest, setParallel, setRelative, setType |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask |
addEnv, createArg, createHandler, createWatchdog, logFlush, maybeSetResultPropertyValue, prepareExec, runExecute, setAppend, setFailIfExecutionFails, setFailonerror, setNewenvironment, setOs, setOutput, setOutputproperty, setResultProperty, setTimeout, setTimeout, setVMLauncher |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Chmod()
Method Detail |
public void setProject(Project project)
ProjectComponent
setProject
in class ProjectComponent
project
- Project in whose scope this component belongs.
Must not be null
.ProjectComponent.setProject(org.apache.tools.ant.Project)
public void setFile(java.io.File src)
src
- public void setDir(java.io.File src)
setDir
in class ExecTask
src
- public void setPerm(java.lang.String perm)
perm
- public PatternSet.NameEntry createInclude()
public PatternSet.NameEntry createExclude()
public PatternSet createPatternSet()
public void setIncludes(java.lang.String includes)
includes
- the string containing the include patternspublic void setExcludes(java.lang.String excludes)
excludes
- the string containing the exclude patternspublic void setDefaultexcludes(boolean useDefaultExcludes)
useDefaultExcludes
- "true"|"on"|"yes" when default exclusions
should be used, "false"|"off"|"no" when they
shouldn't be used.protected void checkConfiguration()
ExecTask
checkConfiguration
in class ExecuteOn
public void execute() throws BuildException
ExecTask
execute
in class ExecTask
BuildException
- if something goes wrong with the buildpublic void setExecutable(java.lang.String e)
ExecTask
setExecutable
in class ExecTask
public void setCommand(Commandline cmdl)
setCommand
in class ExecTask
public void setSkipEmptyFilesets(boolean skip)
ExecuteOn
setSkipEmptyFilesets
in class ExecuteOn
protected boolean isValidOs()
ExecTask
isValidOs
in class ExecTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |