[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] Bundle naming scheme in P2
|
Hi John,
Thanks for your reply. This change worked in certain scenarios for me.
I am using the following ant task to generate a p2 repository from the source folder.
<java jar="plugins/org.eclipse.equinox.launcher-1.0.200.v20090520.jar"
fork="true">
<arg line="-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator
-source target/p2-features
-metadataRepository file:${basedir}/target/p2-repo
-artifactRepository file:${basedir}/target/p2-repo
-publishArtifacts
-publishArtifactRepository"/>
</java>
Bundles in the source folder have the naming structure <name>-<version>.jar. But inside the resulting P2 repository, all the plugins have the naming scheme <name>_<version>.jar. Is there a way specify this mapping rule when generating a p2 repository using Equinox metadata generator?
Thanks
Sameera
On Tue, Aug 11, 2009 at 9:02 PM, John Arthorne
<John_Arthorne@xxxxxxxxxx> wrote:
Yes, this structure is described by
a mapping rule in the artifacts.jar/artifacts.xml file:
<rule filter='(&
(classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
You can change this mapping rule to
get a different structure. For example to change <name>_<version>
to <name>-<version, you would use this rule:
<rule filter='(&
(classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}-${version}.jar'/>
John
Hi,
AFAIK, bundle naming scheme in P2 is <bundle-symbolic-name>_<bundle-version>.jar.
When you generate a P2 repository you will see the plugin names in the
same scheme. Is there a way to instruct P2 to perform its operations
with the following bundle naming scheme also?
<bundle-symbolic-name>-<bundle-version>.jar.
Thanks
Sameera
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
--
Sameera Jayasoma
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/blog:
http://tech.jayasoma.org