Avoid producing a trailing colon in java.class.path. by cpovirk · Pull Request #3365 · apache/maven-surefire (original) (raw)

This is more consistent with how java -cp ... operates:

If I run...

java -cp somejar:

...then Java sees a trailing empty path, i.e., "the current directory."

But Surefire includes a trailing colon in all cases --
even when the current directory is not on the class path.

This behavior contributed to google/guava#8295

Following this checklist to help us incorporate your
contribution quickly and easily:

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.