ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Elkins" <celk...@scardini.com>
Subject Re: echo message does not translate properties
Date Fri, 20 Oct 2000 21:21:09 GMT
> In what context and with what version of ant do you see this behavior? Using
> 1.2rc1 I am able to echo the properties defined within a target.
>
Sorry, my bad. I should have elaborated, especially considering that my
situation isn't exactly the same as the one in the original message.

Ant version = 1.2rc2

Build file
----------
    <target name="check_for_optional_packages">
        <available property="jsdk2.2.present"
classname="javax.servlet.jsp.PageContext" value="false"/>
    </target>

    <target name="env" depends="check_for_optional_packages">
        <echo message="jsdk2.2 = ${jsdk2.2.present}"/>
    </target>

Output
------
    C:\Projects\jakarta\turbine\build>build-turbine.bat env
    Buildfile: build-turbine.xml

    check_for_optional_packages:

    env:
    jsdk2.2 = ${jsdk2.2.present}

    BUILD SUCCESSFUL

    Total time: 1 second


Perhaps I'm misunderstanding the usage of the value attribute in the available
tag, but in this scenario I'd expect to see:
    jsdk2.2 = false

Am I missing something?

--
Christopher Elkins


Mime
View raw message