B.12 ChownTask

Changes the owner of a file or directory.

Table B.14: Attributes

fileStringThe name of the file or directory. You either have to specify this attribute, or use a fileset.n/aYes
userStringThe new owner of the file. Can contain a username and a groupname, separated by a dot.n/aNo
groupStringThe new group owner of the file.n/aNo
quietBooleanSet quiet mode, which suppresses warnings if chmod() failsfalseNo
failonerrorBooleanThis flag means 'note errors to the output, but keep going'trueNo
verboseBooleanGive more information in error message in case of a failuretrueNo

B.12.1 Examples

<chown file="my-file.txt" user="foo" />
<chown file="my-file.txt" user="username.groupname" />
<chown file="/home/test/my-directory" user="bar" />
<chown file="/home/test/my-file.txt" user="foo"
verbose="true" failonerror="false" />

B.12.2 Supported Nested Tags