You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas FRANK <nf...@financeactive.com> on 2003/06/06 13:42:35 UTC
Null pointer exception when no project.xml...
Could'nt we have a more explicite message when there is no project.xml file
than the null pointer exception... (something like no project.xml found, the
current directory is probably not a maven project directory.).
This is whishable when working with peoples that don't really know anything
about java... And don't always take care of their current directory (like the
graphist I am working with !)
Thank's.
Nicolas.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Null pointer exception when no project.xml...
Posted by Ben Walding <de...@walding.com>.
This is fixed in CVS.
Nicolas FRANK wrote:
>Could'nt we have a more explicite message when there is no project.xml file
>than the null pointer exception... (something like no project.xml found, the
>current directory is probably not a maven project directory.).
>
>This is whishable when working with peoples that don't really know anything
>about java... And don't always take care of their current directory (like the
>graphist I am working with !)
>
>Thank's.
>
>Nicolas.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Null pointer exception when no project.xml...
Posted by Scott Stirling <sc...@rcn.com>.
> -----Original Message-----
> From: Nicolas FRANK [mailto:nfrank@financeactive.com]
>
> Could'nt we have a more explicite message when there is no
> project.xml file than the null pointer exception...
> (something like no project.xml found, the current directory
> is probably not a maven project directory.).
I've thought the same thing. Something like what Ant does, except I like
your message suggestion better:
F:\>ant
Buildfile: build.xml does not exist!
Build failed
Around line 528 of org.apache.maven.cli.App currently looks like the natural
place to catch the NPE and print a nicer message.
Scott Stirling
Framingham, MA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org