ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rum Pel" <rum_...@hotmail.com>
Subject Re: chmod on windows
Date Tue, 04 Jun 2002 09:33:12 GMT
Well, attrib is an exe on my windows 2000.

----- Original Message -----
From: "Sebastien Diot" <s.diot@eurodata.de>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Tuesday, June 04, 2002 12:45 PM
Subject: AW: chmod on windows


> Hi !
>
> I'm afraid that there isn't such a thing as an "executable attribute"
under
> Windows.  What is executable is defined by it's extention.  From the
> command line, I think you can only run .COM, .EXE, .BAT and .CMD (not
> sure).  From the GUI you might "run" anything for which there is a
> registered program, for example a Perl script (.PL) if you have a Perl
> interpreter installed.
>
> -----Ursprungliche Nachricht-----
> Von: Rum Pel [SMTP:rum_pel@hotmail.com]
> Gesendet am: Dienstag, 4. Juni 2002 07:12
> An: Ant Users List
> Betreff: chmod on windows
>
> I thought all tasks are platform independant, but
> chmod seems to work only on unix.
> Whats the equivalent of chmod task on windows?
>
> Also, is it possible to execute tasks based on conditions?
> If os.family is unix
> then
>    chmod o-w file
> else
> if os.family is windows
> then
>    execute attrib -R file
> endif.
>
> The condition task doesnt seem to be for this purpose.
>
> --rp.
>
>
> --
> 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