Minor, make CodegenTestUtil.compileJava take absolute paths of files

This commit is contained in:
Alexander Udalov
2016-03-01 13:03:26 +03:00
parent 12cf70ac38
commit 26de87d792
4 changed files with 19 additions and 16 deletions
@@ -127,12 +127,11 @@ public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase {
FileUtil.processFilesRecursively(dirFile, new Processor<File>() {
@Override
public boolean process(File file) {
String path = relativePath(file);
if (path.endsWith(".kt")) {
ktFilePaths.add(path);
if (file.getName().endsWith(".kt")) {
ktFilePaths.add(relativePath(file));
}
else if (path.endsWith(".java")) {
javaFilePaths.add(path);
else if (file.getName().endsWith(".java")) {
javaFilePaths.add(file.getPath());
}
return true;
}