ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50485] New: The <available> task should have else attribute
Date Thu, 16 Dec 2010 12:49:15 GMT

           Summary: The <available> task should have else attribute
           Product: Ant
           Version: 1.8.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core tasks

With Ant's awesome new support of true/false properties on if/unless attributes
(a million times thank you, by the way!) it would be nice if the <available>
task supports an else attribute so the property value can be set to false if
the file/resource/whatever isn't available.

There is a workaround, something like:

        <condition property="file-exists" else="false">
                <file file="somefile.xml" />

However, the <available> task is more succinct and (to my eyes) clearly states
the intent.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message