Package 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
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.ExecuteOnExecuteOn.FileDirBoth
- 
Field SummaryFields inherited from class org.apache.tools.ant.taskdefs.ExecuteOndestDir, filesets, mapper, mapperElement, srcFilePos, srcIsFirst, targetFilePos, typeFields inherited from class org.apache.tools.ant.taskdefs.ExecTaskcmdl, failOnError, newEnvironment, redirector, redirectorElementFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCheck the attributes and nested elements.Add a name entry on the exclude list.Add a name entry on the include list.Add a set of patterns.voidexecute()Carry out the chmoding.protected booleanCheck if the os is valid.voidsetAddsourcefile(boolean b) This is not allowed for Chmod.voidsetCommand(Commandline cmdl) Set the command.voidsetDefaultexcludes(boolean useDefaultExcludes) Sets whether default exclusions should be used or not.voidThe directory which holds the files whose permissions must be changed.voidsetExcludes(String excludes) Sets the set of exclude patterns.voidSet the executable.voidThe file or single directory of which the permissions must be changed.voidsetIncludes(String includes) Sets the set of include patterns.voidSet the new permissions.voidsetProject(Project project) Set the project of this task.voidsetSkipEmptyFilesets(boolean skip) This is not allowed for Chmod.Methods inherited from class org.apache.tools.ant.taskdefs.ExecuteOnadd, 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.ExecTaskaddConfiguredRedirector, addEnv, createArg, createWatchdog, getOs, getOsFamily, getResolveExecutable, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExecute, setAppend, setDiscardError, setDiscardOutput, 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.TaskbindToOwner, 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.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation
- 
Constructor Details- 
Chmodpublic Chmod()Chmod task for setting file and directory permissions.
 
- 
- 
Method Details- 
setProjectSet the project of this task. Calls the super class and sets the project on dhe default FileSet.- Overrides:
- setProjectin class- ProjectComponent
- Parameters:
- project- the project for this task.
- See Also:
 
- 
setFileThe file or single directory of which the permissions must be changed.- Parameters:
- src- the source file or directory.
 
- 
setDir
- 
setPerm
- 
createIncludeAdd a name entry on the include list.- Returns:
- a NameEntry to be configured.
 
- 
createExcludeAdd a name entry on the exclude list.- Returns:
- a nameentry to be configured.
 
- 
createPatternSet
- 
setIncludesSets the set of include patterns. Patterns may be separated by a comma or a space.- Parameters:
- includes- the string containing the include patterns.
 
- 
setExcludesSets the set of exclude patterns. Patterns may be separated by a comma or a space.- Parameters:
- excludes- the string containing the exclude patterns.
 
- 
setDefaultexcludespublic 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.
 
- 
checkConfigurationprotected void checkConfiguration()Check the attributes and nested elements.- Overrides:
- checkConfigurationin class- ExecuteOn
 
- 
executeCarry out the chmoding.- Overrides:
- executein class- ExecTask
- Throws:
- BuildException- on error.
 
- 
setExecutableSet the executable. This is not allowed for Chmod.- Overrides:
- setExecutablein class- ExecTask
- Parameters:
- e- ignored.
- Throws:
- BuildException- always.
 
- 
setCommandSet the command. This is not allowed for Chmod.- Overrides:
- setCommandin class- ExecTask
- Parameters:
- cmdl- ignored.
- Throws:
- BuildException- always.
 
- 
setSkipEmptyFilesetspublic void setSkipEmptyFilesets(boolean skip) This is not allowed for Chmod.- Overrides:
- setSkipEmptyFilesetsin class- ExecuteOn
- Parameters:
- skip- ignored.
- Throws:
- BuildException- always.
 
- 
setAddsourcefilepublic void setAddsourcefile(boolean b) This is not allowed for Chmod.- Overrides:
- setAddsourcefilein class- ExecuteOn
- Parameters:
- b- ignored.
- Throws:
- BuildException- always.
 
- 
isValidOs
 
-