Hi Jeroen,

I am <exec>'ing the cacls.exe utility to change the permissions in a build
target.  Here's an example:

                <exec program="cmd.exe" workingdir=".">
                        <arg value="/c cacls" />
                        <arg value="${mdb.file}" />
                        <arg value="/E" />
                        <arg value="/G testpc\aspnet:F" />
                        <arg value="&lt; y.txt" />
                </exec>

Note the input redirection --> "< y.txt".  Cacls asks a dumb "are you sure"
question at the console, and the y.txt file contains just a "y" and a new
line symbol.

Hope this helps.

Hristo Deshev 

--
How good the design is doesn't matter near as much as whether the design is
getting better or worse. If it is getting better, day by day, I can live
with it forever. If it is getting worse, I will die. --Kent Beck


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
Zwartepoorte
Sent: Thursday, August 12, 2004 9:30
To: Nant-Users (E-mail)
Subject: [Nant-users] chmod a+x equivalent in nant?

Hi,

It looks to me like the <attrib> task is Windows-specific: it seems you
can't change any of the file attribute bits like execute on a UNIX system.
Is this correct? If so, how is this supposed to work? Ant has a nice <chmod>
task: http://ant.apache.org/manual/CoreTasks/chmod.html .

Thanks,

Jeroen



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk
Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off
Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to