aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/filesystem/ShedCompilerFiles.java
blob: 3e75e1990ce458f88234f949b2e57707e809d9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.shedlang.compiler.filesystem;

import java.nio.file.Path;

public class ShedCompilerFiles {
    private ShedCompilerFiles() {
    }

    public static Path getRoot() {
        // TODO: don't assume we're in the project root
        return Path.of(".");
    }

    public static Path standardRuntimeTargetDir(String targetName, String gcName) {
        return getRoot()
            .resolve("runtime/target")
            .resolve(targetName)
            .resolve(gcName);
    }
}