On Thu, 2003-06-19 at 16:15, Jason van Zyl wrote:
> On Thu, 2003-06-19 at 11:03, David Walend wrote:
> > (Odd that maven is still able to search up 
> > the source tree to find some project.xml file on it's own, but doesn't 
> > reset the base directory. Is that a bug?)
> 
> That's why you need to use ${basedir} in your file references. As far as
> I know there is no consistent way in Java to set the current working
> directory.

I think you can only set the current working directory for new processes
created with Runtime.exec, and that only with JDK 1.3. But I guess you
knew that.

Would it be sufficient to store a value for ${basedir} when the POM was
read, then to prepend it to relative paths when necessary? Plugins would
need to be aware of when they need absolute pathnames and when they can
manage with the text the user put in the POM, but I'd guess most uses
should be absolute with the possible exception of diagnostic messages.

-Mark.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to