Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349069

Summary: [publisher] p2-publisher doesn't generate a flat, optimized repository with the parameter "-reusepPackedFiles"
Product: [Eclipse Project] Equinox Reporter: Beyhan Veliev <beyhan.veliev>
Component: p2Assignee: Pascal Rapicault <pascal>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: irbull, pascal, rsternberg
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Beyhan Veliev CLA 2011-06-10 12:11:27 EDT
I'm using the p2-publisher application to publish a p2-repository. The call to the publisher looks like:
   java -jar $launcher \
   -application org.eclipse.equinox.p2. publisher.FeaturesAndBundlesPublisher \
   -metadataRepository myRepositoryDir \
   -artifactRepository myRepositoryDir \
   -source mySource \
   -reusePackedFiles \
   -compress \
   -publishArtifacts

The generated p2-repository contains pack200 artifacts located next to the jarred artifacts but the artifacts metadata (artifacts.jar) doesn't have any information about the packed artifacts (property "publishPackFilesAsSiblings" set to "true", ... etc.). If I use "-reusePack200Files" instead "-reusepPackedFiles" in the publisher call then everything is fine. According to the p2-documentation both parameters should have the same effect.
Comment 1 Pascal Rapicault CLA 2011-06-12 18:40:52 EDT
Could you please indicate which doc you are referring to? It looks to me like you are confusing the help for the application and the doc for the ant task since help.eclipse.org does not mention any pack.gz related features for the app and I can only find a ref to reusePackedFiles in the description of the ant tasks.

That said, I think the ant tasks and the app should be made consistent wrt this option.
Comment 2 Beyhan Veliev CLA 2011-07-05 09:20:51 EDT
(In reply to comment #1)

Hi Pascal,

> Could you please indicate which doc you are referring to?
I was referring the publisher wiki page [1]. In this page both arguments are explained. 
> That said, I think the ant tasks and the app should be made consistent wrt this
> option.
+1


[1]http://wiki.eclipse.org/Equinox/p2/Publisher
Comment 3 Eclipse Genie CLA 2018-10-02 14:42:58 EDT
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.

--
The automated Eclipse Genie.
Comment 4 Lars Vogel CLA 2019-09-04 01:54:34 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.
Comment 5 Lars Vogel CLA 2019-09-04 01:57:52 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.