Changeset 14179 in josm for trunk/test/unit/org
- Timestamp:
- 2018-08-22T22:55:16+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/PluginServer.java
r14153 r14179 26 26 import com.github.tomakehurst.wiremock.junit.WireMockRule; 27 27 import com.google.common.collect.ImmutableList; 28 import com.google.common.collect.Streams; 28 29 29 30 public class PluginServer { … … 118 119 119 120 if (jarPath.startsWith(filesRootPath)) { 120 return filesRootPath.relativize(jarPath).toString(); 121 // would just use .toString() but need to force use of *forward slash* path separators on all platforms 122 return Streams.stream(filesRootPath.relativize(jarPath)).map(p -> p.toString()).collect(Collectors.joining("/")); 121 123 } 122 124 }
Note:
See TracChangeset
for help on using the changeset viewer.