diff --git a/tooling/metamodel-generator/src/test/java/org/hibernate/jpamodelgen/test/util/CompilationTest.java b/tooling/metamodel-generator/src/test/java/org/hibernate/jpamodelgen/test/util/CompilationTest.java index aac3e7719b..582305d199 100644 --- a/tooling/metamodel-generator/src/test/java/org/hibernate/jpamodelgen/test/util/CompilationTest.java +++ b/tooling/metamodel-generator/src/test/java/org/hibernate/jpamodelgen/test/util/CompilationTest.java @@ -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 compilationDiagnostics; @@ -117,7 +117,7 @@ public abstract class CompilationTest { List javaFiles = new ArrayList(); 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 );