]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/InitialRepository.java
Fixed all line endings of the repository
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / InitialRepository.java
1 package org.simantics.scl.compiler.tests;
2
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;
7
8 public class InitialRepository {
9     private static ModuleRepository MODULE_REPOSITORY1 = new ModuleRepository(
10             new CompositeModuleSourceRepository(
11                     SourceRepositories.BUILTIN_SOURCE_REPOSITORY,
12                     SourceRepositories.PRELUDE_SOURCE_REPOSITORY
13                     ));
14     
15     public static ModuleRepository getInitialRepository() {
16         if(MODULE_REPOSITORY1.getModule("Prelude").didSucceed())
17             return MODULE_REPOSITORY1;
18         else
19             return SCLOsgi.MODULE_REPOSITORY;
20     }
21 }