1 package org.simantics.scl.compiler.tests;
3 import org.simantics.scl.compiler.module.repository.ModuleRepository;
4 import org.simantics.scl.compiler.source.repository.CompositeModuleSourceRepository;
5 import org.simantics.scl.compiler.source.repository.SourceRepositories;
6 import org.simantics.scl.osgi.SCLOsgi;
8 public class InitialRepository {
9 public static final boolean NO_PRELUDE = false;
11 private static ModuleRepository MODULE_REPOSITORY1 = new ModuleRepository(
12 new CompositeModuleSourceRepository(
13 SourceRepositories.BUILTIN_SOURCE_REPOSITORY,
14 SourceRepositories.PRELUDE_SOURCE_REPOSITORY
17 public static ModuleRepository getInitialRepository() {
19 return new ModuleRepository(SourceRepositories.BUILTIN_SOURCE_REPOSITORY);
20 else if(MODULE_REPOSITORY1.getModule("Prelude").didSucceed())
21 return MODULE_REPOSITORY1;
23 return SCLOsgi.MODULE_REPOSITORY;