ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Oxspring" <roxspr...@yahoo.com>
Subject RE: [SUBMIT] Attrib task (chmod for Windows)
Date Fri, 25 Jan 2002 17:24:28 GMT
Why should Chmod.java and Attrib.java force an operating system
precondition?

    protected boolean isValidOs() {
        return Os.isFamily("unix") && super.isValidOs();
    }

It is simply not true that the os family must be unix for the task to run.
"unix" should probably be a default value, but the os parameter should be
enhanced to allow a list of valid families e.g. "unix, windows" thereby
allowing chmod to be used under windows and unix based builds.

Rob



> -----Original Message-----
> From: Jesse Stockall [mailto:jesse@cryptocard.com]
> Sent: Friday, January 25, 2002 2:13 PM
> To: ant-dev
> Subject: [SUBMIT] Attrib task (chmod for Windows)
>
>
> Hi
>
> Here is a a new Task for changing file attributes on Windows. It is
> based on the Chmod task.
>
>
>
>
> --
>  Jesse Stockall			|	Tel: 1+
> 613.599.2441 ext. 243
>  CRYPTOCard Corporation		|	Fax: 1+ 613.599.2442
>  Suite 304, 300 March Rd.	|	email: jesse@cryptocard.com
>  Ottawa, ON, Canada K2K 2E2	|	web: www.cryptocard.com
> ---------------------------------------------------------------------
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Mime
View raw message