Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2010-04-26 22:46:00 +0000
committeratikhomirov2010-04-26 22:46:00 +0000
commit1c1c4164293ef69312183a49f0265483cfc8bbc8 (patch)
tree3e2697819089eb45a929902c41e9babe0a4e8ef7
parent2d2e91d93aa5aa4cf9354066fd099633babe46a0 (diff)
downloadorg.eclipse.gmf-tooling-1c1c4164293ef69312183a49f0265483cfc8bbc8.tar.gz
org.eclipse.gmf-tooling-1c1c4164293ef69312183a49f0265483cfc8bbc8.tar.xz
org.eclipse.gmf-tooling-1c1c4164293ef69312183a49f0265483cfc8bbc8.zip
remove debug printouts, try another approach to resolve sporadic compilation errors - force JavaCore initialization.v20100426-2359
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/AllTests.java3
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/CompileUtil.java14
2 files changed, 3 insertions, 14 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/AllTests.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/AllTests.java
index cd9348bbb..ebc89ae7b 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/AllTests.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/AllTests.java
@@ -55,6 +55,7 @@ import org.eclipse.gmf.tests.tr.TestDefaultMergeService;
import org.eclipse.gmf.tests.tr.TransformToGenModelOperationTest;
import org.eclipse.gmf.tests.tr.XmlTextMergerTest;
import org.eclipse.gmf.tests.validate.AllValidateTests;
+import org.eclipse.jdt.core.JavaCore;
public class AllTests {
@@ -72,6 +73,8 @@ public class AllTests {
SessionSetup.disallowSingleTestCaseUse();
+ JavaCore.initializeAfterLoad(null);
+
/*
* Temporary workaround: loading all the projects in the
* beginning to get rid of the problems with runtime registries
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/CompileUtil.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/CompileUtil.java
index 281d69523..1531cf5c6 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/CompileUtil.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/CompileUtil.java
@@ -13,7 +13,6 @@ package org.eclipse.gmf.tests;
import java.util.ArrayList;
-import org.eclipse.core.resources.ICommand;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -32,19 +31,6 @@ public class CompileUtil {
public IStatus build(IProject project) {
try {
- System.err.println("Compiling project " + project.getName());
- if (!project.isAccessible()) {
- System.err.println("\tNOT ACCESSIBLE!!!");
- }
- System.err.println("\t" + "Builders:");
- ICommand[] buildCommands = project.getDescription().getBuildSpec();
- for (int i = 0, l = buildCommands.length; i < l; i++) {
- System.err.println("\t" + buildCommands[i].getBuilderName());
- }
- } catch (Exception ex) {
- System.err.println("!!! JavaProject games are over with " + ex);
- }
- try {
project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
IMarker[] compileErrors = getJavaErrors(project);
if (compileErrors.length > 0) {

Back to the top