Compilation fails when I import classes of other projects.
[example]
projectA and projectB is Eclipse project.
projectB refer projectA.
projectB -> Properties dialog -> Java Build Path -> Project tab -> Add projectA
Foo class in projectA.
Bar class in projectB.
Bar class inherit Foo class.
import Foo;
class Bar extends Foo {
}
Enalbe CodeCover on projectB.
[result]
org.codecover.model.utils.FatalException: A fatal error occured: An
error occured when trying to compile the instrumented sources.
at org.codecover.model.utils.Logger.log(Logger.java:50)
at org.codecover.model.utils.Logger.log(Logger.java:65)
at org.codecover.model.utils.Logger.log(Logger.java:78)
at org.codecover.model.utils.Logger.fatal(Logger.java:92)
at org.codecover.eclipse.builder.CodeCoverCompilationParticipant.buildStarting(CodeCoverCompilationParticipant.java:355)
[env]
Eclipse 3.5.2
CodeCover 1.0.1.0
JDK 6 update 22
I modified the CodeCoverCompilationParticipant class to solve this problem.
See the addClasspath() method of the attached file for details.
CodeCoverCompilationParticipant class