[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Generating p2 metadata w/ EclipseGenerator (was Re: [cross-project-issues-dev] Day 3+ Status and Staging)
|
Delete the existing artifacts.jar and content.jar; IIRC the generator
won't regen them if they already exist.
Here's how we gen meta for Modeling, to convert an existing update site
(features/*.jar, plugins/*.pack.gz, and site.xml) into a p2 repo
(artifacts.jar and content.jar produced next to site.xml):
$vm -cp $launcherJar:$generatorJar:$basebuilderDir/plugins
org.eclipse.equinox.launcher.Main \
-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
-updateSite ${targetDir}/ -site file:${targetDir}/site.xml \
-metadataRepository file:${targetDir}/ -metadataRepositoryName
"$projectNameVanity Update Site" \
-artifactRepository file:${targetDir}/ -artifactRepositoryName
"$projectNameVanity Artifacts" \
-compress -reusePack200Files -vmargs -Xmx128M
And here's the same idea as Ant task (Athena builds):
<java jar="@{launcherjar}" fork="true" timeout="10800000"
jvm="${JAVA_HOME}/bin/java" failonerror="false" maxmemory="256m"
taskname="p2.meta">
<classpath>
<fileset dir="${relengBaseBuilderDir}/plugins"
includes="org.eclipse.equinox.launcher_*.jar" />
<pathelement location="${relengBaseBuilderDir}/plugins" />
</classpath>
<arg line=" org.eclipse.equinox.launcher.Main -application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator" />
<arg line=" -updateSite ${updateSiteJarDir}/ -site
file:${updateSiteJarDir}/site.xml" />
<arg line=" -source ${updateSiteJarDir}/ -features
${updateSiteJarDir}/features/ -bundles ${updateSiteJarDir}/bundles/" />
<arg line=" -metadataRepository file:${updateSiteJarDir}/
-metadataRepositoryName "${projectid} Update Site"" />
<arg line=" -artifactRepository file:${updateSiteJarDir}/
-artifactRepositoryName "${projectid} Artifacts"" />
<arg line=" -compress ${pack200Files}" />
</java>
HTH,
N
Oliver Wolf wrote:
Hi David,
how exactly do you run
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator to
re-generate the p2 metadata after packing and signing?
I tried
java -jar $LAUNCHER \
-application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
-publishArtifactRepository \
-compress \
-inplace \
-reusePack200Files \
-artifactRepository file:/Users/owolf/updates \
-metadataRepository file:/Users/owolf/updates \
-source file:/Users/owolf/updates \
-vmargs -Xmx256m
with /Users/owolf/updates being my p2 repo:
-rw-rw-r-- 1 owolf staff 8481 7 Mai 18:34 artifacts.jar
-rw-rw-r-- 1 owolf staff 94728 7 Mai 18:34 content.jar
drwxrwxr-x 7 owolf staff 238 7 Mai 18:34 features
drwxrwxr-x 98 owolf staff 3332 7 Mai 18:34 plugins
but it doesn’t seem to to do anything.
I must admit I’m starting to get kinda desperate...
Thanks,
Oliver
Am 08.05.09 05:00 schrieb "David M Williams" unter
<david_williams@xxxxxxxxxx>:
So close.
A number of big issues were fixed in the two days, but, one small
issue is
not quite done, so I am not ready to declare M7 done.
There's a last step needed to fix a mysteriously corrupted pack.gz file.
See bug 275150.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275150
Any release engineers from Modeling up late?
If not, I'm sure it'll be fixed first thing on Friday.
I have updated 'staging' with the very latest ... which has more content
than ever before. ECF+2 is in, STP is in, xpand is in. All projects are
in, except for swordfish, which has a problem with MD5 checksums
that has
turned out to be fairly common problem. We all learn so much going
through
this. See bug 275094.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=275094
So, outlook is good for Friday We still expect to be on target for
Monday
...
every good plan should have a little buffer built in.
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
*Oliver Wolf
*Lead Architect Runtime Platform
Tel.: +49 228-182 19059
Fax: +49 228-182 19193
Mobil: +49 160-98931313
_oliver.wolf@xxxxxxxxx
_
Wussten Sie schon? *SOPERA* <_http://www.osbf.de/de/node/1466_> hat den
Open Source Business Award 2009 <_http://www.osbf.de/en/node/1466_>
verliehen bekommen!
*SOPERA GmbH - Open Source SOA
*Subscription Services, Support & Maintenance, Training,
Technical SOA Consulting & Customized Development
*www.sopera.de <**_http://www.sopera.de/_>
*SOPERA GmbH · Geschäftsführer: Dr. Ricco Deutscher, Harald Weimer,
Peter Spiegel
Sträßchensweg 10 · 53113 Bonn · Handelsregister: Bonn HRB 15336
Hohenlindnerstraße 11b · 85622 München
Vertraulichkeitshinweis: Diese Nachricht und jeder übermittelte Anhang
beinhaltet vertrauliche Informationen und ist nur für die Personen oder
das Unternehmen bestimmt, an welche sie tatsächlich gerichtet ist.
Sollten Sie nicht der Bestimmungsempfänger sein, weisen wir Sie darauf
hin, dass die Verbreitung, das (auch teilweise) Kopieren sowie der
Gebrauch der empfangenen E-Mail und der darin enthaltenen Informationen
gesetzlich verboten ist und gegebenenfalls Schadensersatzpflichten
auslösen kann. Sollten Sie diese Nachricht aufgrund eines
Übermittlungsfehlers erhalten haben, bitten wir Sie, den Sender
unverzüglich hiervon in Kenntnis zu setzen.
------------------------------------------------------------------------
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Release Engineer :: Eclipse Modeling & Dash Athena