You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paul Gardella <pg...@bbn.com> on 2003/01/13 18:40:28 UTC

Problem with element

I've got an Ant document with a target that I only want executed if an
associated property is set to true, and NOT executed if the property is set
to false.  I set up the following property:

	<property name="produce.javadocs" value="false" />

In the target, I have the following code:

	<target name="javadocs" depends="init" if="javadocs.desired">
	  ...make javadocs...
	</target>

In the "init" target, I have the following:

	<target name="init">
   	  <condition property="javadocs.desired">
	    <istrue value="${produce.javadocs}" />
	  </condition>
	</target>

When I run ant, I get the following error:

	BUILD FAILED
	The <condition> task doesn't support the nested "istrue" element.

Yet the documentation I have (and other mailing list items I've read)
indicate that <istrue> is a valid nested element of the <condition> element.
What am I missing here?  Thanks.

Paul


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problem with element

Posted by Paul Gardella <pg...@bbn.com>.
OK, thanks.  I appear to have gotten 1.5 documentation with 1.4.1 software.

Paul

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Tuesday, January 14, 2003 2:29 AM
To: ant-user@jakarta.apache.org
Subject: Re: Problem with <istrue> element


On Mon, 13 Jan 2003, Paul Gardella <pg...@bbn.com> wrote:

> Yet the documentation I have (and other mailing list items I've
> read) indicate that <istrue> is a valid nested element of the
> <condition> element.  What am I missing here?

Ant 1.5?  <istrue> has been introduce in 1.5 and is not present in
1.4.1 or earlier.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem with element

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 13 Jan 2003, Paul Gardella <pg...@bbn.com> wrote:

> Yet the documentation I have (and other mailing list items I've
> read) indicate that <istrue> is a valid nested element of the
> <condition> element.  What am I missing here?

Ant 1.5?  <istrue> has been introduce in 1.5 and is not present in
1.4.1 or earlier.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>