Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Generate a flat but optimized repository
Generate a flat but optimized repository [message #677769] Thu, 09 June 2011 10:46 Go to next message
Beyhan Veliev is currently offline Beyhan VelievFriend
Messages: 3
Registered: July 2009
Junior Member
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 metadata in artifacts.jar doesn't have any
information about the packed artifacts. When I execute the
"org.eclipse.equinox.p2.artifact.optimizers.pack200optimizer"
application after the publisher application then a ".blobstore" folder
is crate next to the "plugins" folder of my p2-repository and this
folder contains also pack200 artifacts and they are referenced in the
artifacts metadata. I don't need the ".blobstore" folder. I want the
optimized artifacts next to my jarred artifacts. What is the right way
to generate such a repository?

Thanks and Regards,
Beyhan
Re: Generate a flat but optimized repository [message #682212 is a reply to message #677769] Fri, 10 June 2011 16:14 Go to previous message
Beyhan Veliev is currently offline Beyhan VelievFriend
Messages: 3
Registered: July 2009
Junior Member
Using "-reusePack200Files" instead "-reusePackedFiles" solved my
problem. This seems to be a publisher bug. According
to the p2-documentation both parameters should have the same effect. I
created one https://bugs.eclipse.org/bugs/show_bug.cgi?id=349069.

Cheers,
Beyhan
Previous Topic:incomplete mirror of Eclipse RAP P2 repository
Next Topic:P2 hook update
Goto Forum:
  


Current Time: Sat Nov 18 01:10:34 GMT 2017

Powered by FUDForum. Page generated in 0.01789 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software