Would be better to implement the tests against a system property which
defaults to user.dir.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 13. Januar 2005 08:29
> An: user@ant.apache.org
> Betreff: Re: Running <junit> in a different directory than build.xml
> 
> On Wed, 12 Jan 2005, Rick Genter <[EMAIL PROTECTED]> wrote:
> 
> > Is there a way to tell <junit> to run its tests in a different
> > directory without forking the VM?
> 
> No.  You can't change the working directory of a running Java process
> (well, at least not portably, you can simply reset user.dir on Apple's
> VM for MacOS X).
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to