Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-19 Thread Joern Huxhorn
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"

Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-18 Thread Brett Porter
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

Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-18 Thread Joern Huxhorn
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

RE: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-13 Thread Jörg Schaible
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

Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-12 Thread Jörg Schaible
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

Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-12 Thread Joern Huxhorn
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

Re: M2: Current directory (user.dir) problem in case of multi-module project.

2006-01-12 Thread Julian Wood
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