Hi,
I thought I'd seen this topic before, but now cannot seem to find it.
I'm hoping someone out there can help. I'm trying to generate some
category info for our project P2 repositories with no luck.
I've tried just about every combination of parameters I can think of
with the metadata generator, and it generates the P2 fine, but no
category info.
I am building directly from ANT. I've tried having the site.url point to
a local file (not in repository) - no luck. I've also tried copying the
site file to the repos and using that location as the site url - again
no luck.
At this point I'm wondering if I'm using the right tool, or if the M6/M7
generator has a bug, or I'm missing something else big. Is anyone out
there manually generating categories for P2, if so what tools are you
using?
Below is the latest metadata command-line I'm using, and the Site.xml
file.
Any help would be appreciated.
Thanks
-Eric
ANT Snippet:
<!-- Tool definitions -->
<property name="p2.SDK.install.dir" value="C:\eclipseSDK\eclipse"/>
<property name="p2.SDK.plugin.dir"
value="${p2.SDK.install.dir}\plugins"/>
<property name="p2.generator.jar"
value="org.eclipse.equinox.p2.metadata.generator_*.jar"/>
<property name="p2.launcher.jar"
value="org.eclipse.equinox.launcher_*.jar"/>
<!-- Input definitions -->
<property name="p2.base.dir" value="C:\__AA_TestRepos"/>
<property name="p2.feature.dir" value="${p2.base.dir}/features"/>
<property name="p2.bundle.dir" value="${p2.base.dir}/plugins"/>
<property name="site.dir"
value="${feature.build.location}/${classes.dir}"/>
<property name="site.url" value="file:$
{site.dir}/site.xml"/>
<!-- Output definitions -->
<property name="p2.repository.url" value="file:/${p2.base.dir}"/>
<property name="
P2.release.repos.name" value="EclipseLink
Repository"/>
<property name="
metadata.repos.name"
value=""${
P2.release.repos.name}""/>
<property name="
artifact.repos.name" value=""EclipseLink
Artifacts""/>
<target name="generate-p2-repos">
<echo message="Site url="">
<!-- Metadata generator apparently doesn't rebuild the artifact
and content xml files if they already exist -->
<delete failonerror="false">
<fileset dir="${p2.base.dir}" includes="artifact*.*,
content*.*"/>
</delete>
<java classname="org.eclipse.equinox.launcher.Main" fork="true"
timeout="10800000" taskname="p2"
jvm="${java.home}/bin/java" failonerror="false"
maxmemory="256m">
<classpath>
<fileset dir="${p2.SDK.plugin.dir}"
includes="${p2.launcher.jar},
${p2.generator.jar}"/>
<pathelement location="${p2.SDK.plugin.dir}" />
</classpath>
<arg line=" -application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator" />
<arg line=" -updateSite ${p2.base.dir}/ -site ${site.url}" />
<arg line=" -source ${p2.base.dir}/ -features
${p2.feature.dir}/ -bundles ${p2.bundle.dir}/" />
<arg line=" -metadataRepository ${p2.repository.url}/
-metadataRepositoryName ${
metadata.repos.name}" />
<arg line=" -artifactRepository ${p2.repository.url}/
-artifactRepositoryName ${
artifact.repos.name}" />
<arg line=" -compress -reusePack200Files" />
</java>
</target>
Site.xml:
<?xml version="1.0" encoding="UTF-8"?>
<site pack200="true">
<description
url="">
EclipseLink Milestones: contains runtime and source features for
JPA, MOXy and SDO components
</description>
<feature
url="">
id="org.eclipse.persistence.jpa" version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<feature
url="">
id="org.eclipse.persistence.jpa.source"
version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<feature
url="">
id="org.eclipse.persistence.moxy" version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<feature
url="">
id="org.eclipse.persistence.moxy.source"
version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<feature
url="">
id="org.eclipse.persistence.sdo" version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<feature
url="">
id="org.eclipse.persistence.sdo.source"
version="1.1.2.v20090515-r4235.jar">
<category name="EclipseLink 1.1.2-M1"/>
</feature>
<category-def name="EclipseLink 1.1.2-M1" label="EclipseLink
1.1.2-M1"/>
</site>
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev