ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Muhataev <Pav...@moscow.vestedev.com>
Subject IF statement
Date Mon, 04 Mar 2002 10:45:17 GMT
How can I write "If" statement?

I have some property and system variable. And I'd like to use property only
in case system variable is not set. How can I do this.

Or how can I display warning message in case of system property not defined.

Here is example.
    <property environment="env"/>
    <property name="was.home.default"
value="d:/Java/IBM/WebSphere/AppServer/lib"/>
    <property name="was.home.system"   value="${env.WAS_HOME}"/>
    ...
    And now, how can I define property "was.home" to use "was.home.system"
in case it is defined, or "was.home.default" in case of "was.home.system" is
not defined???
    


thanks
Paul Moukhataev.


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message