| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectComponentorg.apache.tools.ant.Taskorg.apache.tools.ant.taskdefs.ExecTaskorg.apache.tools.ant.taskdefs.ExecuteOnorg.apache.tools.ant.taskdefs.Chmodpublic class Chmodextends ExecuteOnNested 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.ProjectComponent | |
description, location, project | |
Constructor Summary | |
| |
Method Summary | |
protected void |
|
PatternSet.NameEntry |
|
PatternSet.NameEntry |
|
PatternSet |
|
void |
|
protected boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
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 | |
protected void checkConfiguration()
Check the attributes and nested elements.
- Overrides:
- checkConfiguration in interface ExecuteOn
public PatternSet.NameEntry createExclude()
Add a name entry on the exclude list.
- Returns:
- a nameentry to be configured.
public PatternSet.NameEntry createInclude()
Add a name entry on the include list.
- Returns:
- a NameEntry to be configured.
public PatternSet createPatternSet()
Add a set of patterns.
- Returns:
- a patternset to be configured.
public void execute()
throws BuildExceptionCarry out the chmoding.
- Throws:
BuildException- on error.
protected boolean isValidOs()
Check if the os is valid. Always include unix.
- Returns:
- true if the os is valid.
public void setAddsourcefile(boolean b)
This is not allowed for Chmod.
- Overrides:
- setAddsourcefile in interface ExecuteOn
- Parameters:
b- ignored.
public void setCommand(Commandline cmdl)
Set the command. This is not allowed for Chmod.
- Overrides:
- setCommand in interface ExecTask
- Parameters:
cmdl- ignored.
public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
- Parameters:
useDefaultExcludes- "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
public void setDir(File src)
The directory which holds the files whose permissions must be changed.
- Parameters:
src- the directory.
public void setExcludes(String excludes)
Sets the set of exclude patterns. Patterns may be separated by a comma or a space.
- Parameters:
excludes- the string containing the exclude patterns.
public void setExecutable(String e)
Set the executable. This is not allowed for Chmod.
- Overrides:
- setExecutable in interface ExecTask
- Parameters:
e- ignored.
public void setFile(File src)
The file or single directory of which the permissions must be changed.
- Parameters:
src- the source file or directory.
public void setIncludes(String includes)
Sets the set of include patterns. Patterns may be separated by a comma or a space.
- Parameters:
includes- the string containing the include patterns.
public void setPerm(String perm)
Set the new permissions.
- Parameters:
perm- the new permissions.
public void setProject(Project project)
Set the project of this task. Calls the super class and sets the project on dhe default FileSet.
- Overrides:
- setProject in interface ProjectComponent
- Parameters:
project- the project for this task.
- See Also:
ProjectComponent.setProject(Project)
public void setSkipEmptyFilesets(boolean skip)
This is not allowed for Chmod.
- Overrides:
- setSkipEmptyFilesets in interface ExecuteOn
- Parameters:
skip- ignored.