workaround for windows test failure

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