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