https://issues.apache.org/bugzilla/show_bug.cgi?id=53383
--- Comment #2 from Stefan Bodewig <[email protected]> --- This is really ugly, I should have written assertResourceExists using a nested element rather than an attibute. Ant's Resource-valued attributes only work in conjunction with property expanders that return Resources - they don't work if you use a plain String. So this here works <url url="http://ant.apache.org/index.html" id="antsite"/> <au:assertTrue> <au:resourceExists resource="${ant.refid:antsite}"/> </au:assertTrue> but this doesn't <au:assertTrue> <au:resourceExists resource="http://ant.apache.org/index.html"/> </au:assertTrue> To make things worse the nested macrodef construction of assertResourceExists will evaluate the property to a string before it reaches resourceExists so even <url url="http://ant.apache.org/index.html" id="antsite"/> <au:assertResourceExists resource="${ant.refid:antsite}"/> will not work. See my previous comment for a workaround, assertResourceExists as it stands will not work for anything other than a file at all. -- You are receiving this mail because: You are the assignee for the bug.
