ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: ant and os
Date Tue, 24 Jan 2006 07:43:21 GMT
Do you HAVE to differentiate between
    rmiregistry
and 
    rmiregistry.exe
?

Try invoking without the .exe suffix on windows (should be resolved via windows´ PATHEXT
variable) and you´ll get rid off that problem.


Jan


>-----Ursprüngliche Nachricht-----
>Von: Stefan Bodewig [mailto:bodewig@apache.org] 
>Gesendet: Montag, 23. Januar 2006 22:20
>An: user@ant.apache.org
>Betreff: Re: ant and os
>
>On Mon, 23 Jan 2006, Marc Collin <collinm@laboiteaprog.com> wrote:
>
>> i search a way to do:
>> 
>> exec rmiregistry.exe if windows
>> else exec rmiregistry
>
>you'd probably want rmiregistry on OS/2 or OpenVMS as well if 
>you are ever going to run Ant there.
>
><property environment="env"/>
><condition property="rmiregistry" value="rmiregistry.exe">
>  <or>
>    <available file="rmiregistry.exe" filepath="${env.PATH}"/>
>    <available file="rmiregistry.exe" filepath="${env.Path}"/>
>  </or>
></condition>
><property name="rmiregistry" value="rmiregistry"/>
>
><exec executable="${rmiregistry}" .../>
>
>Stefan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message