Skip to content

Commit ce94eee

Browse files
committed
added absolute path for source-file to access the parent directory in compilation command, directly.
eg: instead of: cafe -c ./xyz.cafe now, this works: cafe -c xyz.cafe
1 parent 17ddc43 commit ce94eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/compiler/main/CompilerResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class CompilerResult {
4545

4646
private CompilerResult(String moduleName, File sourceFile) {
4747
this.moduleName = moduleName;
48-
this.sourceFile = sourceFile;
48+
this.sourceFile = sourceFile.getAbsoluteFile();
4949
sourceFolder = sourceFile.getParent() + File.separator;
5050
}
5151

0 commit comments

Comments
 (0)