ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: cygwin detection
Date Tue, 29 May 2001 07:51:06 GMT
--- Kasper Nielsen <kav@kav.dk> wrote:
> Are there anyway to test if ant is invoked via cygwin?
> Just like can test if Ant is invoked on a windows installation
> (isWindows NT,isWindows 98,...)

  <property environment="env"/>
  <property name="is${env.OSTYPE}" value="true"/>

  <target name="cygCheck" if="iscygwin">
    <echo message="Running under Cygwin"/>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message