Repository navigation
Conversation
|
@marchof While working on this ticket I found that in |
|
@Godin Because this package is used in the report.test bundle to setup test data. I know this is bad design, but can we fix it separately? |
|
@marchof ok, so I'll leave it exactly as it is now |
7e7b891 to
5330fa8
Compare
|
@marchof could you please review? There are some notable differences in resulting files, in particular:
|
|
@Godin First of all many thanks for picking this up! Regarding I wanted to test the new bundles with EclEmma but I failed to include them with the EclEmma build as the build now picks up the JaCoCo bundles from orbit. Any ideas how I can use local JaCoCo snapshots builds with EclEmma? |
Well, removal was easy. I'll try to add basic entries.
Nice idea! 👍 I did only diff for
You can revert eclipse-eclemma/eclemma@330ec84 locally: apply patch for usage of JaCoCo 0.7.9: diff --git i/org.eclipse.eclemma.core/META-INF/MANIFEST.MF w/org.eclipse.eclemma.core/META-INF/MANIFEST.MF
index cc88add..57782d2 100644
--- i/org.eclipse.eclemma.core/META-INF/MANIFEST.MF
+++ w/org.eclipse.eclemma.core/META-INF/MANIFEST.MF
@@ -15,9 +15,9 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.debug.core,
org.eclipse.jdt.core,
org.eclipse.jdt.launching,
- org.jacoco.core;bundle-version="[0.7.7,0.7.8)",
- org.jacoco.agent;bundle-version="[0.7.7,0.7.8)",
- org.jacoco.report;bundle-version="[0.7.7,0.7.8)"
+ org.jacoco.core;bundle-version="[0.7.9,0.7.10)",
+ org.jacoco.agent;bundle-version="[0.7.9,0.7.10)",
+ org.jacoco.report;bundle-version="[0.7.9,0.7.10)"
Bundle-Activator: org.eclipse.eclemma.internal.core.EclEmmaCorePlugin
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git i/org.eclipse.eclemma.ui/META-INF/MANIFEST.MF w/org.eclipse.eclemma.ui/META-INF/MANIFEST.MF
index 62befeb..6b1a097 100644
--- i/org.eclipse.eclemma.ui/META-INF/MANIFEST.MF
+++ w/org.eclipse.eclemma.ui/META-INF/MANIFEST.MF
@@ -6,7 +6,7 @@ Bundle-Version: 3.0.0.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Require-Bundle: org.eclipse.eclemma.core,
- org.jacoco.core;bundle-version="[0.7.7,0.7.8)",
+ org.jacoco.core;bundle-version="[0.7.9,0.7.10)",
org.eclipse.core.expressions,
org.eclipse.core.runtime,
org.eclipse.debug.ui,and will use JaCoCo artifacts from local Maven repository. |
|
For the record: appearance of OSGi attributes in |
|
@Godin Still looking for a simple method to test EclEmma with local snapshot versions (also for future versions). If we could create a local p2 repo with JaCoCo snapshots we could simply add this repor to the EclEmma target definition. I tried to create a small tycho build for exactly this but did not suceed so far. |
|
@marchof while I agree that method described in #211 (comment) is not simple enough, I suggest to use it now. And come back to the question about simplification of testing of EclEmma with snapshot version of JaCoCo separately, especially that difficulty is caused by changes on EclEmma side and that there are multiple possible solutions that we need to evaluate:
|
|
@Godin Your first proposal would make testing quite simple:
|
|
@marchof do you remember that during EclipseCon Europe 2016 while testing removal of compatibility layer for older Eclipse versions in EclEmma we were observing some unwanted effects of |
|
@Godin Then, alternatively we add a profile to JaCoCo which creates a p2 repo. |
|
@marchof btw did you noticed that this PR was updated with fix for |
|
@marchof you can easily create p2 repository containing snapshot version of JaCoCo using https://github.com/reficio/p2-maven-plugin Just execute result will be in |
|
@Godin Yep, I noticed the change for |
marchof
left a comment
There was a problem hiding this comment.
- All MANIFEST.MF look good now
- Successfully built and installed EclEmma with new bundles
I removed IDE dependencies with commit ae311b9. Now we can create proper MANIFEST.MF files during the build with bnd: http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html