Good day to you, Ole,

Try adding that as a parameter.

public class MyMojo ...
{
    /**
     * @parameter default-value="${basedir}
     */
    private File baseDirectory;

    ...
}

Cheers,
Franz


Ole wrote:
> 
> Hi,
> 
> Anyone know what the best 
> way of getting the base path 
> for a mojo runtime root directory?
> 
> I could do it like this:
> 
> new File("").getAbsolutePath()
> 
> but I'm sure there's a more elegant approach.
> 
> Thanks,
> - Ole
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> It's here! Your new message!  
> Get new email alerts with the free Yahoo! Toolbar.
> http://tools.search.yahoo.com/toolbar/features/mail/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-the-mojo-runtime-base-directory-path-tf3025563s177.html#a8408296
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to