ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goktepe <andrewgokt...@gmail.com>
Subject Re: ant and os
Date Mon, 23 Jan 2006 18:40:44 GMT
<condition property="running.on.windows">
    <os family="windows" />
</condition>

Then have the script act according to whether or not running.on.windows is
set.

You can also use the os attribute of exec, but there are multiple OS values
for multiple versions of Windows.

-Andrew

On 1/23/06, Marc Collin <collinm@laboiteaprog.com> wrote:
>
> hi
>
> i search a way to do:
>
> exec rmiregistry.exe if windows
> else exec rmiregistry
>
> any idea?
>
> thanks
> --
> www.laboiteaprog.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message