Re: file permission rights under Windows
On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote: how can I change the permissions of a Windows file ? There is no built-in task to do that, but people have sent custom tasks to ant-dev, you may find one in the archives. I've been told that there is an executable named attrib that can be used to change the read-only flag (I really have no idea, sorry 8-). Any reason you cannot use exec to invoke this? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: file permission rights under Windows
thanks stefan, I will have a look in the archives. and no theres no reason why I cant use exec. but I didnt know that there is a chance to do this with exec. Quoting Stefan Bodewig [EMAIL PROTECTED]: On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote: how can I change the permissions of a Windows file ? There is no built-in task to do that, but people have sent custom tasks to ant-dev, you may find one in the archives. I've been told that there is an executable named attrib that can be used to change the read-only flag (I really have no idea, sorry 8-). Any reason you cannot use exec to invoke this? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: file permission rights under Windows
Use exec to call Attrib. The available attributes are hidden (h), readonly (r), system (s), archive (a). Anyway to set the flag state attrib +r filename. to remove attrib -r filename. to see all current flags attrib Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 4:53 AM To: Ant Users List Subject: Re: file permission rights under Windows thanks stefan, I will have a look in the archives. and no theres no reason why I cant use exec. but I didnt know that there is a chance to do this with exec. Quoting Stefan Bodewig [EMAIL PROTECTED]: On Thu, 06 Dec 2001, detlef brendle [EMAIL PROTECTED] wrote: how can I change the permissions of a Windows file ? There is no built-in task to do that, but people have sent custom tasks to ant-dev, you may find one in the archives. I've been told that there is an executable named attrib that can be used to change the read-only flag (I really have no idea, sorry 8-). Any reason you cannot use exec to invoke this? Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: file permission rights under Windows
readers might be interested to know that a java api do this sort of thing was promised, then pulled, from java 1.4: http://developer.java.sun.com/developer/bugParade/bugs/4313887.html ...you are free to vote on the issue if you feel it is important, though Sun's development process is most definately not a democracry. - Original Message - From: Timothy Spear [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 5:40 AM Subject: RE: file permission rights under Windows Use exec to call Attrib. The available attributes are hidden (h), readonly (r), system (s), archive (a). Anyway to set the flag state attrib +r filename. to remove attrib -r filename. to see all current flags attrib Tim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]