Commit daafbe67 authored by Aurelien Pupier's avatar Aurelien Pupier
Browse files

BS-8520: adding more logs to try to understand why it is failing

aleatorily in our automatic tests
parent 54b2e131
......@@ -202,6 +202,7 @@ public class Repository implements IRepository {
public void open() {
try {
if (!project.isOpen()) {
BonitaStudioLog.log("Opening project: " + project.getName());
project.open(NULL_PROGRESS_MONITOR);
final JavaProject jProject = (JavaProject) project.getNature(JavaCore.NATURE_ID);
if (jProject != null) {
......@@ -210,7 +211,6 @@ public class Repository implements IRepository {
}
new ClasspathValidation(jProject).validate();
}
}
} catch (final CoreException e) {
BonitaStudioLog.error(e);
......
......@@ -182,7 +182,9 @@ public class RepositoryManager {
if(repository == null){
repository = createRepository(repositoryName) ;
}
BonitaStudioLog.log("Creating repository: " + repositoryName);
repository.create();
BonitaStudioLog.log("Opening repository: " + repositoryName);
repository.open();
preferenceStore.setValue(RepositoryPreferenceConstant.CURRENT_REPOSITORY,repositoryName) ;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment