}
return hasLoaded;
}
public static void resetModuleManager() {
RepositoryManagerBuilder builder = new RepositoryManagerBuilder(new Logger(){
@Override
public void error(String str) {
System.err.println("ERROR: "+str);
}
@Override
public void warning(String str) {
System.err.println("WARN: "+str);
}
@Override
public void info(String str) {
System.err.println("INFO: "+str);
}
@Override
public void debug(String str) {
System.err.println("DEBUG: "+str);
}
}, false, (int)com.redhat.ceylon.common.Constants.DEFAULT_TIMEOUT);
RepositoryManager repoManager = builder.buildRepository();
VFS vfs = new VFS();
Context context = new Context(repoManager, vfs);
moduleManager = new RuntimeModuleManager(context);
moduleManager.initCoreModules();
moduleManager.prepareForTypeChecking();