ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <rta...@attbi.com>
Subject Re: problem with condition using boolean
Date Mon, 19 May 2003 05:35:02 GMT
At 10:16 PM 5/18/03 +0200, you wrote:
>What I think you need is :
><condition property="junitPath" value="../junit3.7">
><istrue value="${isUnix}"/>
>  </condition>
>if your intention is to set the property junitPath with valu ../junit3.7 if
>the isUnix property has been set to "true"
>Source : http://ant.apache.org/manual/CoreTasks/conditions.html
>Cheers
>Antoine

yes, works like a charm!

thanks


>----- Original Message -----
>From: "Ray Tayek" <rtayek@attbi.com>
>To: <user@ant.apache.org>
>Sent: Saturday, May 17, 2003 11:16 PM
>Subject: problem with condition using boolean
>
>
> > the following blows off with a: Element type "isUnix" must be followed by
> > either attribute specifications, ">" or "/>". happens if i use
> > isUnix="true" or just isUnix by itself. blows in unix or windoze 98se
>using
> > ant 5.1.
> >
> > how does one use a property that is set to true in a <condition
> > property=...> statement?
> >
> > thanks
> >
> > <project basedir="." default="all" name="ImageViewer">
> >          <target name="init">
> >                  <condition property="isUnix"> <os family="unix"/>
></condition>
> >                  <echo message="isUnix=${isUnix}"/>
> >                  <condition property="junitPath" value="../junit3.7">
> > <isUnix=true/> </condition>...

---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


Mime
View raw message