Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import liquidjava.diagnostics.warnings.CustomWarning;
import liquidjava.processor.RefinementProcessor;
import liquidjava.processor.context.ContextHistory;
import liquidjava.specification.Refinement;
import spoon.Launcher;
import spoon.compiler.Environment;
import spoon.processing.ProcessingManager;
Expand Down Expand Up @@ -60,6 +61,9 @@ public static void launch(String... paths) {

Environment env = launcher.getEnvironment();
env.setNoClasspath(true);
env.setSourceClasspath(
new String[] { new File(Refinement.class.getProtectionDomain().getCodeSource().getLocation().getFile())
.getAbsolutePath() });
env.setComplianceLevel(8);

boolean buildSuccess = launcher.getModelBuilder().build();
Expand Down
Loading