ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: Checking if properties is set
Date Thu, 20 Sep 2001 12:22:45 GMT
Diane,

Thanks for the correction and followup solution!

-Jason

    > -----Original Message-----
    > From: Diane Holt [mailto:holtdl@yahoo.com]
    > Sent: Wednesday, September 19, 2001 6:06 PM
    > To: ant-user@jakarta.apache.org
    > Subject: Re: Checking if properties is set
    > 
    > 
    > --- Ylan Segal <ylan@digiworks.tv> wrote:
    > > I am trying to write a target that checks if all needed 
    > properties are
    > > set before it actually does anything else.
    > 
    > Other than using <script>, I don't know of any way 
    > currently to check if a
    > list of properties are simply set. The if/unless 
    > construct only tests one
    > property at a time, not a list of properties, as someone suggested
    > earlier. Nor can you use the <condition> task with the 
    > <equals> element,
    > as someone else suggested (comparing arg1 to "" will 
    > always return false,
    > regardless of whether the property named in arg1 is set 
    > or not). To use
    > <condition>, we'd need to add a new element that was like 
    > <equals>, but
    > that just checks for whether the property is set, not 
    > what it's set to.
    > 
    > Diane
    > 
    > =====
    > (holtdl@yahoo.com)
    > 
    > 
    > 
    > __________________________________________________
    > Terrorist Attacks on U.S. - How can you help?
    > Donate cash, emergency relief information
    > http://dailynews.yahoo.com/fc/US/Emergency_Information/
    > 
    > 


Mime
View raw message