On 2018-04-15, Gintautas Grigelionis wrote:

> Could you please explain what alternative approach does the "root"
> property support

It has been added with
and the commit message states the main use case "running tests from
an arbitrary directory". I don't recall the details, you may want to
look at the mailing list archive of December 2004.

My main point is this is something that has been working for more than
thriteen years and I don't want to break it for people who rely on it
just because it makes running the tests from an IDE slightly
inconvenient (by having to remember something).

> _and_ add assumptions checks, since it causes nasty NPEs when not set?

IIRC the fallback would be to use the current working directory instead
of the "root" property if the former is not set. We can easily deal with
this by using

System.getProperty("root", System.getProperty("user.dir"))

instead, right?

> By the looks of it, JUnit 5 runner tests need an assumption check, too.

Not sure why, but I may again be missing something.


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

Reply via email to