blob: 924f98ce691c09d1d650ac9e1dead2bc3d4e113a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.javacs;
import java.nio.file.*;
class Lib {
static Path installRoot() {
var root = Paths.get(".").toAbsolutePath();
var p = root;
while (p != null && !Files.exists(p.resolve("javaLsFlag.txt"))) p = p.getParent();
if (p == null) throw new RuntimeException("Couldn't find javaLsFlag.txt in any parent of " + root);
return p;
}
static final Path SRC_ZIP = installRoot().resolve("lib/src.zip");
}
|