org.apache.tools.ant.taskdefs
public class Chmod extends ExecuteOn
Since: Ant 1.1
UNKNOWN: category="filesystem" Refactor so it does not extend from ExecuteOn and then turn around and unsupport several attributes.
Constructor Summary | |
---|---|
Chmod()
Chmod task for setting file and directory permissions. |
Method Summary | |
---|---|
protected void | checkConfiguration()
Check the attributes and nested elements. |
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()
Carry out the chmoding. |
protected boolean | isValidOs()
Check if the os is valid.
|
void | setAddsourcefile(boolean b)
This is not allowed for Chmod. |
void | setCommand(Commandline cmdl)
Set the command.
|
void | setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
|
void | setDir(File src)
The directory which holds the files whose permissions must be changed. |
void | setExcludes(String excludes)
Sets the set of exclude patterns. |
void | setExecutable(String e)
Set the executable.
|
void | setFile(File src)
The file or single directory of which the permissions must be changed. |
void | setIncludes(String includes)
Sets the set of include patterns. |
void | setPerm(String perm)
Set the new permissions. |
void | setProject(Project project)
Set the project of this task.
|
void | setSkipEmptyFilesets(boolean skip)
This is not allowed for Chmod. |
Returns: a nameentry to be configured.
Returns: a NameEntry to be configured.
Returns: a patternset to be configured.
Throws: BuildException on error.
Returns: true if the os is valid.
Parameters: b ignored.
Throws: BuildException always.
UNKNOWN: ignore="true"
Parameters: cmdl ignored.
Throws: BuildException always.
UNKNOWN: ignore="true"
Parameters: useDefaultExcludes "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
Parameters: src the directory.
Parameters: excludes the string containing the exclude patterns.
Parameters: e ignored.
Throws: BuildException always.
UNKNOWN: ignore="true"
Parameters: src the source file or directory.
Parameters: includes the string containing the include patterns.
Parameters: perm the new permissions.
Parameters: project the project for this task.
See Also: ProjectComponent
Parameters: skip ignored.
Throws: BuildException always.
UNKNOWN: ignore="true"