ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Changing file permissions in Win32
Date Sat, 19 Jan 2002 01:02:25 GMT
Or <exec> to a command-line tool like 'cacls' (builtin to Win2k, not sure if
its builtin or part of the Resource Kit for NT4).


----- Original Message -----
From: "T Master" <tmaster@iknowledgeinc.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, January 18, 2002 7:17 PM
Subject: Re: Changing file permissions in Win32


> The problem is, java only supports a File.setReadOnly()  method.
> Even this on Win2000 is unreliable.
>
> There is no File.allowWritePermission() and  File.allowReadPermission() in
> Java unfortunately.
>
>
> A true  fully functioning <chmod> task  would probably make system calls
for
> adding read/write permission.
>
>
> ----- Original Message -----
> From: "Ron Coutts" <RonC@quadrus.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Friday, January 18, 2002 4:45 PM
> Subject: Changing file permissions in Win32
>
>
> Does anyone know a task for changing a file permission in Win32, like
> the 'chmod' task does in Unix?  I need to change a read-write file to a
> read-only.
>
> Ron
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message