Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Temporary logging to track down the "duplicate class" issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchof committed Jan 27, 2012
1 parent d6f1396 commit c5c5c46
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.jacoco.core.analysis.Analyzer;
import org.jacoco.core.analysis.CoverageBuilder;
import org.jacoco.core.data.ExecutionDataStore;

import com.mountainminds.eclemma.core.EclEmmaStatus;
import com.mountainminds.eclemma.internal.core.EclEmmaCorePlugin;

/**
* Analyzes the class files that belong to given package fragment roots. This
Expand All @@ -45,6 +48,13 @@ AnalyzedNodes analyze(final IPackageFragmentRoot root) throws CoreException {
final IPath path = getClassfilesLocation(root);
AnalyzedNodes nodes = cache.get(path);
if (nodes == null) {

// TODO temporary logging, convert to tracer
final String msg = "Analyzing " + root.getHandleIdentifier() + " (" //$NON-NLS-1$ //$NON-NLS-2$
+ path + ")"; //$NON-NLS-1$
EclEmmaCorePlugin.getInstance().getLog()
.log(new Status(IStatus.INFO, EclEmmaCorePlugin.ID, msg));

nodes = analyze(path);
cache.put(path, nodes);
}
Expand Down

0 comments on commit c5c5c46

Please sign in to comment.