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:qazw...@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="${bpelrootd...@${modulename}/build.xml"/>
     </then>
</if>

On Wed, Jun 3, 2009 at 6:22 AM, Ken Turner <k...@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="${bpelrootd...@{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-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>


--
David Weintraub
qazw...@gmail.com

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

Reply via email to