A Commons NET test was failing on Jenkins, but worked fine locally.
And previously had been working on Continuum.

Turns out this was because Jenkins uses path names of the form
.../commons-net@n/.

The test code was using the following to get the source location:

java.security.CodeSource.getLocation().getFile()

The embedded '@' was returned encoded as %40.

When used as a File parameter of course it did not work, so the test failed.

Using java.net.URLDecoder.decode() on the file-part of the URL fixed this.

There are no doubt other methods that return URLs that represent local
file paths.
Beware!

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

Reply via email to