org.apache.tools.ant.taskdefs

Class Chmod

public class Chmod extends ExecuteOn

Chmod equivalent for unix-like environments.

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 voidcheckConfiguration()
PatternSet.NameEntrycreateExclude()
Add a name entry on the exclude list.
PatternSet.NameEntrycreateInclude()
Add a name entry on the include list.
PatternSetcreatePatternSet()
Add a set of patterns.
voidexecute()
protected booleanisValidOs()
voidsetAddsourcefile(boolean b)
voidsetCommand(Commandline cmdl)
voidsetDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
voidsetDir(File src)
The directory which holds the files whose permissions must be changed.
voidsetExcludes(String excludes)
Sets the set of exclude patterns.
voidsetExecutable(String e)
voidsetFile(File src)
The file or single directory of which the permissions must be changed.
voidsetIncludes(String includes)
Sets the set of include patterns.
voidsetPerm(String perm)
The new permissions.
voidsetProject(Project project)
voidsetSkipEmptyFilesets(boolean skip)

Constructor Detail

Chmod

public Chmod()
Chmod task for setting file and directory permissions.

Method Detail

checkConfiguration

protected void checkConfiguration()

createExclude

public PatternSet.NameEntry createExclude()
Add a name entry on the exclude list.

createInclude

public PatternSet.NameEntry createInclude()
Add a name entry on the include list.

createPatternSet

public PatternSet createPatternSet()
Add a set of patterns.

execute

public void execute()

isValidOs

protected boolean isValidOs()

setAddsourcefile

public void setAddsourcefile(boolean b)

UNKNOWN: ignore="true"

setCommand

public void setCommand(Commandline cmdl)

UNKNOWN: ignore="true"

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.

setDir

public void setDir(File src)
The directory which holds the files whose permissions must be changed.

Parameters: src

setExcludes

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

setExecutable

public void setExecutable(String e)

UNKNOWN: ignore="true"

setFile

public void setFile(File src)
The file or single directory of which the permissions must be changed.

Parameters: src

setIncludes

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

setPerm

public void setPerm(String perm)
The new permissions.

Parameters: perm

setProject

public void setProject(Project project)

See Also: ProjectComponent

setSkipEmptyFilesets

public void setSkipEmptyFilesets(boolean skip)

UNKNOWN: ignore="true"

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.