<filesystem : Chmod>

Description

Chmod equivalent for unix-like environments.

Parameters

Attribute Description Type Required?
addsourcefile boolean ?
excludes Sets the set of exclude patterns. Patterns may be separated by a comma or a space. String ?
verbose boolean ?
parallel boolean ?
input File ?
executable String ?
force boolean ?
inputstring String ?
searchpath boolean ?
relative boolean ?
skipemptyfilesets boolean ?
command Commandline ?
forwardslash boolean ?
spawn boolean ?
includes Sets the set of include patterns. Patterns may be separated by a comma or a space. String ?
vmlauncher boolean ?
file The file or single directory of which the permissions must be changed. File ?
logerror boolean ?
errorproperty String ?
failonerror boolean ?
output File ?
error File ?
defaultexcludes Sets whether default exclusions should be used or not. boolean ?
os String ?
dest File ?
resolveexecutable boolean ?
resultproperty String ?
ignoremissing boolean ?
failifexecutionfails boolean ?
append boolean ?
timeout Integer ?
maxparallel int ?
outputproperty String ?
perm The new permissions. String ?
dir The directory which holds the files whose permissions must be changed. File ?
newenvironment boolean ?
type String ["file", "dir", "both"] ?

Parameters accepted as nested elements

<mapper> ...

Element to define a FileNameMapper.
Attribute Description Type Required
classpath Set the classpath to load the FileNameMapper through (attribute). Path ?
classpathref Set the classpath to load the FileNameMapper through via reference (attribute). Reference ?
refid Make this Mapper instance a reference to another Mapper.

You must not set any other attribute if you make it a reference.

Reference ?
type Set the type of FileNameMapper to use. String ["identity", "flatten", "glob", "merge", "regexp", "package", "unpackage"] ?
classname Set the class name of the FileNameMapper to use. String ?
from Set the argument to FileNameMapper.setFrom String ?
to Set the argument to FileNameMapper.setTo String ?

<include>

inner class to hold a name on list. "If" and "Unless" attributes may be used to invalidate the entry based on the existence of a property (typically set thru the use of the Available task).
Attribute Description Type Required
name Sets the name pattern. String ?
unless Sets the unless attribute. This attribute and the "if" attribute are used to validate the name, based in the existence of the property. String ?
if Sets the if attribute. This attribute and the "unless" attribute are used to validate the name, based in the existence of the property. String ?

<srcfile>

Class to keep track of the position of an Argument.

This class is there to support the srcfile and targetfile elements of <execon> and <transform> - don't know whether there might be additional use cases.

--SB
Attribute Description Type Required

<exclude>

inner class to hold a name on list. "If" and "Unless" attributes may be used to invalidate the entry based on the existence of a property (typically set thru the use of the Available task).
Attribute Description Type Required
name Sets the name pattern. String ?
unless Sets the unless attribute. This attribute and the "if" attribute are used to validate the name, based in the existence of the property. String ?
if Sets the if attribute. This attribute and the "unless" attribute are used to validate the name, based in the existence of the property. String ?

<targetfile>

Class to keep track of the position of an Argument.

This class is there to support the srcfile and targetfile elements of <execon> and <transform> - don't know whether there might be additional use cases.

--SB
Attribute Description Type Required

<patternset> ...

Named collection of include/exclude tags.

Moved out of MatchingTask to make it a standalone object that could be referenced (by scripts for example).

Attribute Description Type Required
includes Appends includes to the current list of include patterns. Patterns may be separated by a comma or a space. String ?
refid Makes this instance in effect a reference to another PatternSet instance.

You must not set another attribute or nest elements inside this element if you make it a reference.

Reference ?
excludesfile Sets the name of the file containing the excludes patterns. File ?
includesfile Sets the name of the file containing the includes patterns. File ?
excludes Appends excludes to the current list of exclude patterns. Patterns may be separated by a comma or a space. String ?

<redirector> ...

Element representation of a Redirector.
Attribute Description Type Required
refid Makes this instance in effect a reference to another instance.

You must not set another attribute or nest elements inside this element if you make it a reference.

Reference ?
inputencoding Set the input encoding. String ?
append Whether output should be appended to or overwrite an existing file. Defaults to false. boolean ?
createemptyfiles Whether output and error files should be created even when empty. Defaults to true. boolean ?
output File the output of the process is redirected to. If error is not redirected, it too will appear in the output File ?
outputproperty Property name whose value should be set to the output of the process. String ?
outputencoding Set the output encoding. String ?
errorproperty Property name whose value should be set to the error of the process. String ?
error Set the file to which standard error is to be redirected. File ?
inputstring Set the string to use as input String ?
alwayslog If true, (error and non-error) output will be "teed", redirected as specified while being sent to Ant's logging mechanism as if no redirection had taken place. Defaults to false. boolean ?
input Set the input to use for the task File ?
errorencoding Set the error encoding. String ?
logerror Controls whether error output of exec is logged. This is only useful when output is being redirected and error output is desired in the Ant log boolean ?

<env>

representation of a single env value
Attribute Description Type Required
key set the key String ?
file get the absolute path of a file and assign it to the value File ?
value set the value String ?
path stringify path and assign to the value. The value will contain all path elements separated by the appropriate separator Path ?

<filelist> ...

FileList represents an explicitly named list of files. FileLists are useful when you want to capture a list of files regardless of whether they currently exist. By contrast, FileSet operates as a filter, only returning the name of a matched file if it currently exists in the file system.
Attribute Description Type Required
dir Set the dir attribute. File ?
refid Makes this instance in effect a reference to another FileList instance.

You must not set another attribute or nest elements inside this element if you make it a reference.

Reference ?
files Set the filenames attribute. String ?

<fileset> ...

Moved out of MatchingTask to make it a standalone object that could be referenced (by scripts for example).
Attribute Description Type Required
refid Reference ?
file File ?
dir File ?
defaultexcludes boolean ?
followsymlinks boolean ?
casesensitive boolean ?
excludes String ?
includesfile File ?
excludesfile File ?
includes String ?

<dirset> ...

Subclass as hint for supporting tasks that the included directories instead of files should be used.
Attribute Description Type Required
refid Reference ?
file File ?
dir File ?
defaultexcludes boolean ?
followsymlinks boolean ?
casesensitive boolean ?
excludes String ?
includesfile File ?
excludesfile File ?
includes String ?

<arg>

Used for nested xml command line definitions.
Attribute Description Type Required
line Line to split into several commandline arguments. String ?
file Sets a single commandline argument to the absolute filename of the given file. File ?
pathref Sets a single commandline argument from a reference to a path - ensures the right separator for the local platform is used. Reference ?
value Sets a single commandline argument. String ?
path Sets a single commandline argument and treats it like a PATH - ensures the right separator for the local platform is used. Path ?