ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: [PATCH] adds 'if'/'unless' to <antcall> (
Date Tue, 26 Nov 2002 17:14:02 GMT
mmm, I have recently felt the need for conditional filesets; I had to hack
something with conditional patternsets instead.

----- Original Message -----
From: "Jose Alberto Fernandez" <>
To: "Ant Developers List" <>
Sent: Tuesday, November 26, 2002 2:58 AM
Subject: RE: [PATCH] adds 'if'/'unless' to <antcall> (

If people really need to do contitional things they should just use
the <if/> task that comes as part of ant-contrib.

The if/unless on any task should be deprecated. The only places it makes
is in 1) targets (although you could put an <if/> inside the target itself)
2) conditional subelements of tasks/datatypes like <exclude name=""
For the later there is really no other way to do it.

An interesting issue to think about is whether it makes sense to generalize
if/unless to control whether an XML subtree is sent to a task or not.

Jose Alberto

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message