METAGEN-83 Should not use path separator but file separator

This commit is contained in:
Sanne Grinovero 2012-03-14 13:06:28 +00:00 committed by Strong Liu
parent 73502abf60
commit 5cacd68cfa
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public abstract class CompilationTest {
private static final String sourceBaseDir; private static final String sourceBaseDir;
private static final String outBaseDir; 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; private List<Diagnostic> compilationDiagnostics;
@ -117,7 +117,7 @@ public abstract class CompilationTest {
List<File> javaFiles = new ArrayList<File>(); List<File> javaFiles = new ArrayList<File>();
String packageDirName = baseDir; String packageDirName = baseDir;
if ( packageName != null ) { if ( packageName != null ) {
packageDirName = packageDirName + PATH_SEPARATOR + packageName.replace( ".", PATH_SEPARATOR ); packageDirName = packageDirName + DIRECTORY_SEPARATOR + packageName.replace( ".", DIRECTORY_SEPARATOR );
} }
File packageDir = new File( packageDirName ); File packageDir = new File( packageDirName );