org.apache.tools.ant.taskdefs
Class Chmod
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
Chmod equivalent for unix-like environments.
- Author:
- costin@eng.sun.com, Mariusz Nowostawski (Marni) mnowostawski@infoscience.otago.ac.nz, Stefan Bodewig
Constructor Summary |
Chmod()
|
Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOn |
addFileset, createMapper, createSrcfile, createTargetfile, getCommandline, getCommandline, getDirs, getFiles, runExec, setDest, setParallel, setType |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask |
addEnv, createArg, createHandler, createWatchdog, logFlush, prepareExec, runExecute, setCommand, setFailonerror, setNewenvironment, setOs, setOutput, setOutputproperty, setTimeout, setVMLauncher |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Chmod
public Chmod()
setFile
public void setFile(java.io.File src)
setDir
public void setDir(java.io.File src)
- Description copied from class:
ExecTask
- The working directory of the process
- Overrides:
setDir
in class ExecTask
setPerm
public void setPerm(java.lang.String perm)
createInclude
public PatternSet.NameEntry createInclude()
- add a name entry on the include list
createExclude
public PatternSet.NameEntry createExclude()
- add a name entry on the exclude list
createPatternSet
public PatternSet createPatternSet()
- add a set of patterns
setIncludes
public void setIncludes(java.lang.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
setExcludes
public void setExcludes(java.lang.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
setDefaultexcludes
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.
checkConfiguration
protected void checkConfiguration()
- Description copied from class:
ExecTask
- Has the user set all necessary attributes?
- Overrides:
checkConfiguration
in class ExecuteOn
execute
public void execute()
throws BuildException
- Description copied from class:
ExecTask
- Do the work.
- Overrides:
execute
in class ExecTask
- Following copied from class:
org.apache.tools.ant.Task
- Throws:
BuildException
- if someting goes wrong with the build
setExecutable
public void setExecutable(java.lang.String e)
- Description copied from class:
ExecTask
- The command to execute.
- Overrides:
setExecutable
in class ExecTask
setCommand
public void setCommand(java.lang.String e)
setSkipEmptyFilesets
public void setSkipEmptyFilesets(boolean skip)
- Description copied from class:
ExecuteOn
- Should empty filesets be ignored?
- Overrides:
setSkipEmptyFilesets
in class ExecuteOn
isValidOs
protected boolean isValidOs()
- Description copied from class:
ExecTask
- Is this the OS the user wanted?
- Overrides:
isValidOs
in class ExecTask
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.