Skip to content

Commit

Permalink
Make MavenMultiModuleTest#artifactArchiving pass on Windows. (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam authored and aheritier committed Aug 26, 2016
1 parent 7b7079a commit d2554dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/hudson/maven/MavenMultiModuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public static final class TestAM extends ArtifactManager {
if (f.exists()) {
if (f.getRemote().replace('\\', '/').contains("/org/jvnet/hudson/main/test/")) {
// Inside the local repository. Hard to know exactly what that path might be, so just mask it out.
f = new FilePath(f.getChannel(), f.getRemote().replaceFirst("^.+(?=[/\\\\]org[/\\\\]jvnet[/\\\\]hudson[/\\\\]main[/\\\\]test[/\\\\])", "…"));
f = new FilePath(f.getChannel(), f.getRemote().replaceFirst("^.+(?=[/\\\\]org[/\\\\]jvnet[/\\\\]hudson[/\\\\]main[/\\\\]test[/\\\\])", "…").replace('\\', '/'));
}
m.put(e.getKey(), f);
} else {
Expand Down

0 comments on commit d2554dd

Please sign in to comment.