DefineWOApplicationResourcesMojo extends AbstractDefineResourcesMojo { public static String normalizedPath(final String path) { return FilenameUtils.separatorsToUnix(path); } DefineWOApplicationResourcesMojo(); static String normalizedPath(final String path); @Override void execute(); @Override String getProductExtension(); @Override MavenProject getProject(); @Override boolean hasContentsFolder(); @Override boolean includesVersionInArtifactName();  }
@Test public void testNormalizedFilePath() throws Exception { String path = "C:\\Documents and Settings\\User\\.m2\\repository"; String result = DefineWOApplicationResourcesMojo.normalizedPath(path); assertEquals("C:/Documents and Settings/User/.m2/repository", result); }