| Summary: | [tool] provide tool to validate presence of artifacts in a repo | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Dave Orme <djo> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | Ed.Merks, pascal |
| Version: | 3.6.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Dave Orme
The first thing that comes to mind is that you are asking for troubles :) What you get on disk is not just a bunch of files but a repository where elements are being referred to from the content.jar and artifacts.jar. This means that by altering the content on disk (e.g. deleting files in plugins or feature or changing their content), you are breaking the integrity of the repository and from there odd behaviour ensue. The fundamental difference explaining the behaviour you observe comes from the fact that what is in the target platform is immutable whereas what you have in your workspace changes every time you build it (assuming your features and bundles end with .qualifier). Therefore when the build publishes the rcp artifacts, it sees that the artifacts.jar does contain the artifact (the artifacts.jar is the mighty truth) and just does not bother publishing them again. However for the jars being built, the artifacts have new version numbers and as such are not found in the artifacts repo and therefore published. At this point, one way to address this would be to run a tool that validates the repo. Hi Pascal, What you're saying makes perfect sense to me from a P2 perspective. Maybe what I'm saying is that from a UI perspective "Build all" feels like it should be the equivalent of a Maven/Tycho: mvn clean install command. Does that make sense? I know, I know, we've never really had the equivalent of a "clean install" command in Platform/Update either. What we've had is really the equivalent of build=="make <target>" and build all=="make". If you want "make clean ; make" or "mvn clean install" you've always had to perform the "clean" operation by hand. It's just--as you point out--that the semantics of "clean" have changed. I guess we can just say that it's a documentation thing. But I have to admit that doesn't quite feel right either. Having a tool to validate a P2 repo is a step in the right direction as long as the tool is run whenever someone clicks one of the "build" buttons in the UI and complains if someone has corrupted their repo. How would you feel about that option? Please file a bug report referring to this discussion against PDE Build. OK; thanks Pascal This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |