More correct check for the path being absolute
This commit is contained in:
@@ -231,7 +231,7 @@ public class CompileEnvironment {
|
|||||||
moduleCompileSession.addStdLibSources();
|
moduleCompileSession.addStdLibSources();
|
||||||
for (String sourceFile : moduleBuilder.getSourceFiles()) {
|
for (String sourceFile : moduleBuilder.getSourceFiles()) {
|
||||||
File source = new File(sourceFile);
|
File source = new File(sourceFile);
|
||||||
if (!source.exists()) {
|
if (!source.isAbsolute()) {
|
||||||
source = new File(directory, sourceFile);
|
source = new File(directory, sourceFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user