But shouldn't this probably be changed for future versions of Maven?
Subprojects should behave the same way if they are compiled separately
or all in a bunch via in a parent pom. I think this is a
pretty common problem. which should be addressed somehow, probably with
an optional fork="true"
No, this is as expected. user.dir is never changed.
- Brett
On 1/18/06, Joern Huxhorn <[EMAIL PROTECTED]> wrote:
> Hi Joerg.
> >
> >> Hi Joern,
> >>
> >> Joern Huxhorn wrote:
> >>
> >> [snip]
> >>
> >>> Is this a bug or a feature? I expected the current dir (user.dir) to
> >>> change for every ex
Hi Joerg.
Hi Joern,
Joern Huxhorn wrote:
[snip]
Is this a bug or a feature? I expected the current dir (user.dir) to
change for every executed sub-module build.
Any ideas how I could solve this problem? Absolute filenames are not
really an option (that's my current workaround and it's
Jörg Schaible wrote on Friday, January 13, 2006 1:42 AM:
> Hi Joern,
>
> Joern Huxhorn wrote:
>
> [snip]
>>
>> Is this a bug or a feature? I expected the current dir (user.dir) to
>> change for every executed sub-module build.
>>
>> Any ideas how I could solve this problem? Absolute filenames
Hi Joern,
Joern Huxhorn wrote:
[snip]
>
> Is this a bug or a feature? I expected the current dir (user.dir) to
> change for every executed sub-module build.
>
> Any ideas how I could solve this problem? Absolute filenames are not
> really an option (that's my current workaround and it's a real
No, I can't use getResource because the class I'm testing needs to work
on files instead of InputStream or URL. It's reading and writing from/to
a file so it's not possible to switch it over to InputStream/URL. I
should've mentioned that. I could probably parse the URL for the
absolute path of
If I understand your problem correctly, you're having problems
accessing resource files from your unit tests?
I think what you want to do is access your resource files differently.
Note that when the process-test-resources goal is called (as part of
mvn package or install or test, etc), file