workaround for windows test failure

This commit is contained in:
James Strachan
2012-05-28 18:48:53 +01:00
parent 252ba5672e
commit 6486023feb
@@ -72,7 +72,7 @@ public class JSSourceJarMojo extends AbstractMojo {
String fullPath = file.getCanonicalPath(); String fullPath = file.getCanonicalPath();
if (fullPath.startsWith(rootPath)) { if (fullPath.startsWith(rootPath)) {
String relativePath = fullPath.substring(rootPath.length()); String relativePath = fullPath.substring(rootPath.length());
if (relativePath.startsWith("/")) { if (relativePath.startsWith("/") || relativePath.startsWith(File.pathSeparator)) {
relativePath = relativePath.substring(1); relativePath = relativePath.substring(1);
} }
writer.println(relativePath); writer.println(relativePath);