Skip to content

Commit

Permalink
METAGEN-83 Should not use path separator but file separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne authored and stliu committed Nov 11, 2013
1 parent 73502ab commit 5cacd68
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -53,7 +53,7 @@ public abstract class CompilationTest {
private static final String sourceBaseDir;
private static final String outBaseDir;

public static final String PATH_SEPARATOR = System.getProperty( "file.separator" );
public static final String DIRECTORY_SEPARATOR = File.separator;

private List<Diagnostic> compilationDiagnostics;

Expand Down Expand Up @@ -117,7 +117,7 @@ protected List<File> getCompilationUnits(String baseDir, String packageName) {
List<File> javaFiles = new ArrayList<File>();
String packageDirName = baseDir;
if ( packageName != null ) {
packageDirName = packageDirName + PATH_SEPARATOR + packageName.replace( ".", PATH_SEPARATOR );
packageDirName = packageDirName + DIRECTORY_SEPARATOR + packageName.replace( ".", DIRECTORY_SEPARATOR );
}

File packageDir = new File( packageDirName );
Expand Down

0 comments on commit 5cacd68

Please sign in to comment.