diff --git a/org.eclipse.eclemma.core.test/src/org/eclipse/eclemma/core/JavaProjectKit.java b/org.eclipse.eclemma.core.test/src/org/eclipse/eclemma/core/JavaProjectKit.java index e3c6f932..6c0e833b 100644 --- a/org.eclipse.eclemma.core.test/src/org/eclipse/eclemma/core/JavaProjectKit.java +++ b/org.eclipse.eclemma.core.test/src/org/eclipse/eclemma/core/JavaProjectKit.java @@ -129,11 +129,9 @@ public IPackageFragmentRoot createJAR(String jarsrc, String jarpath, IFile jarfile = project.getFile(jarpath); InputStream source = openTestResource(new Path(jarsrc)); jarfile.create(source, true, null); - IPackageFragmentRoot packageRoot = javaProject - .getPackageFragmentRoot(jarfile); - addClassPathEntry(JavaCore.newLibraryEntry(packageRoot.getPath(), + addClassPathEntry(JavaCore.newLibraryEntry(jarfile.getFullPath(), sourceAttachmentPath, sourceAttachmentRootPath)); - return packageRoot; + return javaProject.getPackageFragmentRoot(jarfile); } public IPackageFragmentRoot createExternalJAR(String jarsrc,