Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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
public class Chmod
extends ExecuteOn
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 | |
|
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 , 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 |
protected void checkConfiguration()
- Overrides:
- checkConfiguration in interface ExecuteOn
public void execute() throws BuildException
Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.
- Throws:
BuildException
- if something goes wrong with the build
public void setAddsourcefile(boolean b)
- Overrides:
- setAddsourcefile in interface ExecuteOn
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
-
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 setFile(File src)
The file or single directory of which the permissions must be changed.
- Parameters:
src
-
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)
The new permissions.
- Parameters:
perm
-
public void setProject(Project project)
- Overrides:
- setProject in interface ProjectComponent
- See Also:
ProjectComponent.setProject(Project)
public void setSkipEmptyFilesets(boolean skip)
- Overrides:
- setSkipEmptyFilesets in interface ExecuteOn