ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Muhataev <>
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"
    <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???

Paul Moukhataev.

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

View raw message