You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin Burton <bu...@spinn3r.com> on 2015/03/02 21:37:03 UTC
Determining the directory of test/resources from multi-modules?
I have a bunch of side-files I need to maintain for my unit tests. They’re
the results of an text extraction / mining operation. So I need a portable
way to learn the directory of the current module from a test.
Is there an easy way to find that out?
Kevin
--
Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>
Re: Determining the directory of test/resources from multi-modules?
Posted by Baptiste Mathus <ml...@batmat.net>.
Well, IIUC yes. For example you could use filtering to inject the property
saying where the test/resources are. And if you need that directly in some
code, then the templating-maven-plugin may be what you need.
Please give more precision of you need more help.
Cheers
Le 2 mars 2015 21:37, "Kevin Burton" <bu...@spinn3r.com> a écrit :
> I have a bunch of side-files I need to maintain for my unit tests. They’re
> the results of an text extraction / mining operation. So I need a portable
> way to learn the directory of the current module from a test.
>
> Is there an easy way to find that out?
>
> Kevin
>
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> <https://plus.google.com/102718274791889610666/posts>
> <http://spinn3r.com>
>