Sorry no test.
<available resource="(unavailable resource)" ..
will generate an exception in the PhingFile constructor.
Index: classes/phing/tasks/system/AvailableTask.php
===================================================================
--- classes/phing/tasks/system/AvailableTask.php (revision 332)
+++ classes/phing/tasks/system/AvailableTask.php (working copy)
@@ -126,7 +126,11 @@
}
function _checkResource($resource) {
- return $this->_checkFile1(new PhingFile(Phing::getResourcePath($resource)));
+ if ($resourcePath = Phing::getResourcePath($resource)) {
+ return $this->_checkFile1(new PhingFile($resourcePath));
+ } else {
+ return false;
+ }
}
}