Skip to content

Commit 09f8679

Browse files
authored
Fix Wildcard Imports in External Projects (#203)
1 parent eeb2728 commit 09f8679

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

liquidjava-verifier/src/main/java/liquidjava/api/CommandLineLauncher.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import liquidjava.diagnostics.warnings.CustomWarning;
99
import liquidjava.processor.RefinementProcessor;
1010
import liquidjava.processor.context.ContextHistory;
11+
import liquidjava.specification.Refinement;
1112
import picocli.CommandLine;
1213
import spoon.Launcher;
1314
import spoon.compiler.Environment;
@@ -66,6 +67,9 @@ public static void launch(String... paths) {
6667

6768
Environment env = launcher.getEnvironment();
6869
env.setNoClasspath(true);
70+
env.setSourceClasspath(
71+
new String[] { new File(Refinement.class.getProtectionDomain().getCodeSource().getLocation().getFile())
72+
.getAbsolutePath() });
6973
env.setComplianceLevel(8);
7074

7175
boolean buildSuccess = launcher.getModelBuilder().build();

0 commit comments

Comments
 (0)