Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nant and changing file properties (read-only to writable)

Tags:

nant

As part of the Nant copy task, I would like to change the properties of the files in the target location. For instance make the files "read-write" from "read-only". How would I do this?

like image 827
LordHits Avatar asked Sep 16 '08 18:09

LordHits


1 Answers

Use the <attrib> task. For example, to make the file "test.txt" read/write, you would use

<attrib file="test.txt" readonly="false"/>
like image 122
Phillip Wells Avatar answered Nov 09 '22 08:11

Phillip Wells