You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Grégory Joseph <jo...@gmail.com> on 2005/12/22 03:22:50 UTC
Knowing my project's location when building w/ reactor ?
Hi list,
Is there a preferred way, when a project is building with reactor, to
know the location of the project? i.e., if, in a testcase, I do new
File("."), I'll get the path to my root pom's directory, and I'd need
the path to the actual sub-module being tested.
Any tip or idea?
Cheers,
g
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Knowing my project's location when building w/ reactor ?
Posted by Grégory Joseph <jo...@gmail.com>.
> The way this problem is resolved for the castor plugin was to extend
> PlexusTestCase and its getBaseDir() method which returns the locations
> of the projects basedir.
Oh thanks Matt. I just checked that method source and it just works,
nice. Where's this basedir property coming from? Set by maven ? Are
there any others which could be of interest ?
g
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Knowing my project's location when building w/ reactor ?
Posted by Matt Brozowski <br...@opennms.org>.
On Dec 21, 2005, at 9:22 PM, Grégory Joseph wrote:
> Hi list,
>
> Is there a preferred way, when a project is building with reactor, to
> know the location of the project? i.e., if, in a testcase, I do new
> File("."), I'll get the path to my root pom's directory, and I'd need
> the path to the actual sub-module being tested.
The way this problem is resolved for the castor plugin was to extend
PlexusTestCase and its getBaseDir() method which returns the locations
of the projects basedir.
>
> Any tip or idea?
>
> Cheers,
>
> g
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
________________________________________________________________________
___
Matt Brozowski, OpenNMS Maintainer Main: +1 919 812 4984
The OpenNMS Group, Inc. Fax: +1 503 961 7746
Email: brozow@opennms.org URL: http://www.opennms.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org