Skip to content

Commit 75d10b9

Browse files
committed
Fix Wildcard Imports in External Projects
1 parent c68a166 commit 75d10b9

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
@@ -9,6 +9,7 @@
99
import liquidjava.diagnostics.warnings.CustomWarning;
1010
import liquidjava.processor.RefinementProcessor;
1111
import liquidjava.processor.context.ContextHistory;
12+
import liquidjava.specification.Refinement;
1213
import spoon.Launcher;
1314
import spoon.compiler.Environment;
1415
import spoon.processing.ProcessingManager;
@@ -60,6 +61,9 @@ public static void launch(String... paths) {
6061

6162
Environment env = launcher.getEnvironment();
6263
env.setNoClasspath(true);
64+
env.setSourceClasspath(
65+
new String[] { new File(Refinement.class.getProtectionDomain().getCodeSource().getLocation().getFile())
66+
.getAbsolutePath() });
6367
env.setComplianceLevel(8);
6468

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

0 commit comments

Comments
 (0)