I just discovered that the source of the hideous concurrency problem
I've been tracking for some time is the system property "user.dir".

Surefire basically sets the following three system properties:

"basedir" = basedir.getAbsolutePath() 
"user.dir" = workingDirectory.getAbsolutePath();
"localRepository" =  localRepository.getBasedir();

These properties are also used inside maven core, and creates 
some interesting concurrency problems because by the time surefire sets
these values they may have changed already ;)

The method in question is SurefirePlugin.processSystemProperties, with
non-forking operation. 

Have these properties been discussed before ? Any issues, pointers,
thoughts ?

Kristian








---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to