ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: ant-contrib: ispropertytrue
Date Thu, 04 Jun 2009 10:23:13 GMT
Hello,

Just a guess: In the link you gave the code is:
<ispropertytrue property="myprop"/>

Your code is: 
<IsPropertyTrue property="BPELForceBuild" />

Is this a lowercase problem?

Greetings Juergen

-- 
J├╝rgen Knuplesch

-----Urspr├╝ngliche Nachricht-----
Von: David Weintraub [mailto:qazwart@gmail.com] 
Gesendet: Mittwoch, 3. Juni 2009 19:46
An: Ant Users List
Betreff: Re: ant-contrib: ispropertytrue

I don't believe there's a IsPropertyTrue condition. I believe you might want to be using the
<istrue> condition.

This should work:

<if>
    <*istrue* property="BPELForceBuild"/>
    <then>
        <touch file="${bpelrootdir}@${ModuleName}/build.xml"/>
     </then>
</if>

On Wed, Jun 3, 2009 at 6:22 AM, Ken Turner <ken@kbturner.co.uk> wrote:

>
> I'm using  Ant version 1.6.5, and ant-contrib-1.0b2.jar.
> I have a snippet of my build file which looks like this:
>
>        <if>
>                <IsPropertyTrue property="BPELForceBuild" />
>                <then>
>                        <touch file="${bpelrootdir}@{ModuleName}/build.xml"
> />
>                </then>
>        </if>
>
> In my Windows environment (Win XP Pro SP3), this works fine, but I'm 
> attempting to transfer the script to a Linux Environment (Red Hat 
> 2.4.21-58.EL), and I get the following error:
>
>        Class net.sf.antcontrib.logic.IfTask doesn't support the nested 
> "IsPropertyTrue" element
>
> To convince myself that the correct version of ant-contrib is being 
> picked up, I have in both environments hidden the 
> ant-contrib-1.0b2.jar by renaming it, and in both environments it then 
> fails, as would be expected, on the first <if> encountered.
>
> Does anybody have any ideas what the problem might be here?
> --
> View this message in context:
> http://www.nabble.com/ant-contrib%3A-ispropertytrue-tp23848954p2384895
> 4.html Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional 
> commands, e-mail: user-help@ant.apache.org
>
>


--
David Weintraub
qazwart@gmail.com

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


Mime
View raw message