ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1234] New - DirectoryScanner.scan throwing IllegalStateException
Date Thu, 05 Apr 2001 16:49:45 GMT
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: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: lec@uniquare.com                                             |
+ |      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.

Mime
View raw message