Open Source .NET Development [Electronic resources]

Brian Nantz

نسخه متنی -صفحه : 275/ 127
نمايش فراداده

<attrib>Changes the file attributes of a file or set of files.

The attrib task does not have the concept of turning file attributes off. Instead you specify all the attributes that you want turned on, and the rest are turned off by default.

Attribute

Description

Required

file

The name of the file that will have its attributes set. This is provided as an alternative to using the task's fileset.

False

archive

Set the archive attribute. Default is "false."

False

hidden

Set the hidden attribute. Default is "false."

False

normal

Set the normal file attributes. This attribute is valid only if used alone. Default is "false."

False

readonly

Set the read only attribute. Default is "false."

False

system

Set the system attribute. Default is "false."

False

failonerror

Determines whether task failure stops the build or is just reported. Default is "true."

False

verbose

Task reports detailed build log messages. Default is "false."

False

if

If true then the task will be executed; otherwise skipped. Default is "true."

False

unless

Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false."

False

Example

<attrib normal="true"> <fileset> <includes name="**/*.exe"/> <includes name="**/*.dll"/> </fileset> </attrib>