http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1234
*** shadow/1234 Thu Apr 5 09:49:44 2001 --- shadow/1234.tmp.11103 Thu Apr 5 09:49:44 2001 *************** *** 0 **** --- 1,28 ---- + +============================================================================+ + | DirectoryScanner.scan throwing IllegalStateException | + +----------------------------------------------------------------------------+ + | Bug #: 1234 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: All | + | Severity: Enhancement OS/Version: All | + | Priority: Medium Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The DirectoryScanner's scan-method throws an IllegalStateException if the + basedir does not exist or is not a directory: + + if (!basedir.exists()) { + throw new IllegalStateException("basedir does not exist"); + } + if (!basedir.isDirectory()) { + throw new IllegalStateException("basedir is not a directory"); + } + + Even if complex build's are performed it would be useful to print the name of + the faulting basedir too. This would ease fixing the build-problem very much.