use of org.eclipse.ceylon.common.log.Logger in project ceylon by eclipse.
the class AbstractJBossRuntime method createRepository.
private RepositoryManager createRepository(Configuration conf, boolean offline) {
Logger log = new CMRJULLogger();
final RepositoryManagerBuilder builder = CeylonUtils.repoManager().cwd(conf.cwd).systemRepo(conf.systemRepository).cacheRepo(conf.cacheRepository).overrides(conf.overrides).upgradeDist(conf.upgradeDist).noDefaultRepos(conf.noDefaultRepositories).noOutRepo(true).userRepos(conf.repositories).offline(offline || conf.offline).logger(log).buildManagerBuilder();
final MergeStrategy ms = getService(MergeStrategy.class, conf);
if (ms != null)
builder.mergeStrategy(ms);
if (conf.cacheContent)
builder.cacheContent();
final ContentTransformer ct = getService(ContentTransformer.class, conf);
if (ct != null)
builder.contentTransformer(ct);
return builder.buildRepository();
}
Aggregations