DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22227>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22227

available task should support references IMO

           Summary: available task should support references IMO
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


<available> should support a "referenceid" attribute, accompanied by 
optional "instanceof" and "elementtype" attributes.  This would be particularly 
useful for targets called via <antcall>, in which references may or may not 
have been passed.

<!--reference only, simple enough-->

<available property="xavailable" referenceid="x" />


<!--fairly self-explanatory-->

<available property="xotheravailable" referenceid="x" 
instanceof="some.user.defined.Type" />


<!--this one is maybe a little more involved...but I think it is doable 
querying the project's ComponentHelper for the specified elementtype, and 
verifying we are an instance of the returned class.-->

<available property="xpathavailable" referenceid="x" elementtype="path" />

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to