Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
rhbz836054 Canonicalise file separator (to handle backslash on Windows)
  • Loading branch information
seanf committed Jun 28, 2012
1 parent 1752c00 commit 0546bf4
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -78,7 +78,13 @@ public String[] getSrcFiles(File srcDir, List<String> includes, List<String> exc
dirScanner.setExcludes(excludes.toArray(new String[excludes.size()]));
dirScanner.setIncludes(includes.toArray(new String[includes.size()]));
dirScanner.scan();
return dirScanner.getIncludedFiles();
String[] includedFiles = dirScanner.getIncludedFiles();
for (int i = 0; i < includedFiles.length; i++)
{
// canonicalise file separator (to handle backslash on Windows)
includedFiles[i] = includedFiles[i].replace(File.separator, "/");
}
return includedFiles;
}

private void excludeLocaleFileName(List<String> excludes)
Expand Down

0 comments on commit 0546bf4

Please sign in to comment.