--- [EMAIL PROTECTED] wrote:
[SNIP]
> For Matt, because he loves ?:-notations :-)
> urls = (matches!=null) ? new URL[matches.length] :
> new URL[0];
What can I say? I like terseness (in code, anyway)
...
-Matt
__
Do you Yahoo!?
Yahoo! Mail -
List
> Betreff: Re: AW: Null pointer Exception..
>
> Yes, this is a bug.
> It has happened before where a directory exists but the
> user does not have read-access (or execute-access ?) on the directory.
> http://marc.theaimsgroup.com/?l=ant-user&m=109819243121238&w=2
> I
Yes, this is a bug.
It has happened before where a directory exists but the
user does not have read-access (or execute-access ?) on the directory.
http://marc.theaimsgroup.com/?l=ant-user&m=109819243121238&w=2
I forgot to make the neccessary change. - it probally needs a warning
but it is too early
Oh, sorry -
Workaround:
use AntContribs around that area in your buildfile.
Jan
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet am: Montag, 14. Februar 2005 10:16
> An: user@ant.apache.org
> Betreff: AW: Null pointer Exception..
Mmh, could be a bug.
In revision 1.1.5 [1] I found
0230: public static URL[] getLocationURLs(File location, final String[]
extensions)
...
0251: File[] matches = location.listFiles(
0252: new FilenameFilter() {
0253: public boolean accept(File dir, String name)