We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeb2728 commit 09f8679Copy full SHA for 09f8679
1 file changed
liquidjava-verifier/src/main/java/liquidjava/api/CommandLineLauncher.java
@@ -8,6 +8,7 @@
8
import liquidjava.diagnostics.warnings.CustomWarning;
9
import liquidjava.processor.RefinementProcessor;
10
import liquidjava.processor.context.ContextHistory;
11
+import liquidjava.specification.Refinement;
12
import picocli.CommandLine;
13
import spoon.Launcher;
14
import spoon.compiler.Environment;
@@ -66,6 +67,9 @@ public static void launch(String... paths) {
66
67
68
Environment env = launcher.getEnvironment();
69
env.setNoClasspath(true);
70
+ env.setSourceClasspath(
71
+ new String[] { new File(Refinement.class.getProtectionDomain().getCodeSource().getLocation().getFile())
72
+ .getAbsolutePath() });
73
env.setComplianceLevel(8);
74
75
boolean buildSuccess = launcher.getModelBuilder().build();
0 commit comments