ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Spear" <tsp...@tangiblesoftware.com>
Subject RE: file permission rights under Windows
Date Thu, 06 Dec 2001 13:40:09 GMT
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: detlef.brendle@canoo.com [mailto:detlef.brendle@canoo.com]
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 <bodewig@apache.org>:

> On Thu, 06 Dec 2001, detlef brendle <detlef.brendle@canoo.com> 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: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>



--
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