ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scotte Zinn" <>
Subject RE: Multiple properties in target's if/unless
Date Sat, 19 May 2001 20:42:24 GMT
As with the comma-separated list of targets for depends, the comma in the if
would be AND operations.  The case where I came across it is a test that has
two parameters that I wanted to externalize from the build spec itself.  I
wanted the test to run whenever all of the other tests are run and only if
these two parameters were both set.  As it stands now, the test has to be
run specifically and if the parameters are not set, so be it, the test will

-- Scotte
  -----Original Message-----
  From: Jose Alberto Fernandez []
  Sent: May 19, 2001 10:40 AM
  Subject: RE: Multiple properties in target's if/unless

  And the meaning of the coma is? AND, OR, NAND. Does it means the same for
"if" and for "unless".

  This is just a slippery slope....

  Jose Alberto

    -----Original Message-----
    From: Scotte Zinn []
    Sent: Saturday, May 19, 2001 2:26 PM
    Subject: Multiple properties in target's if/unless

    I came across a need for multiple properties to be checked with a
target's if clause and it wasn't possible.  I could do it using multiple
targets, each with an if clause, but that really seemed cludgy.

    Is there another way of doing this?  Will Ant be extended to allow a
comma-separated list of properties in the if/unless block similar to the
depends clause?

    -- Scotte

View raw message