Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » how to use p2.generator ant task to create metadata and artifacts
how to use p2.generator ant task to create metadata and artifacts [message #812561] Sun, 04 March 2012 01:14 Go to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
source="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
features="file:D:/tasks/DI/di/DIBuildExample/updateSite/features/"
bundles="file:D:/tasks/DI/di/DIBuildExample/updateSite/plugins/"
updateSite="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
append="true"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName="content"
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName="artifacts"
p2OS="win32"
/>

undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?

[Updated on: Sun, 04 March 2012 06:28]

Report message to a moderator

Re: how to use p2.generator ant task to create metadata and artifacts [message #812696 is a reply to message #812561] Sun, 04 March 2012 06:31 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName="&quot;content&quot;"
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName="&quot;artifacts&quot;"
/>
undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?
Re: how to use p2.generator ant task to create metadata and artifacts [message #812699 is a reply to message #812561] Sun, 04 March 2012 06:31 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName=""content""
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName=""artifacts""
/>
undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?
Re: how to use p2.generator ant task to create metadata and artifacts [message #812702 is a reply to message #812561] Sun, 04 March 2012 06:31 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName=""content""
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName=""artifacts""
/>
undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?
Re: how to use p2.generator ant task to create metadata and artifacts [message #812703 is a reply to message #812561] Sun, 04 March 2012 06:43 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Tried to run p2.generator ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName="&quot;content&quot;"
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName="&quot;artifacts&quot;"
/>
artifacts.xml and content.xml are created. But they do not contain any feature or plugin information. D:/tasks/DI/di/DIBuildExample/updateSite is a update site I built and contains features & plugins folders which have newly built feature. I also got error in my pde build:
[p2.generator] Generating metadata for null.

what's wrong I did and do I miss some settings?

Re: how to use p2.generator ant task to create metadata and artifacts [message #812706 is a reply to message #812561] Sun, 04 March 2012 06:31 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName=""content""
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName=""artifacts""
/>
undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?
Re: how to use p2.generator ant task to create metadata and artifacts [message #812709 is a reply to message #812561] Sun, 04 March 2012 06:31 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
I tried to use p2.generator ant task to create p2 repository metadata and artifacts after I successfully create a update site.

I run the following ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName=""content""
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName=""artifacts""
/>
undear file:D:/tasks/DI/di/DIBuildExample/updateSite/
it contains features and plugins folders which contain features and plugins I built and site.xml file.
The ant task does create artifacts.xml and content.xml but those two files does not contain any features or plugins I built. Bascially, the 2 files are kind of empty and do not contain the metadata.

I got error: [p2.generator] Generating metadata for null.

Any thing wrong I did ? Or I have to do some other settings?
Re: how to use p2.generator ant task to create metadata and artifacts [message #812710 is a reply to message #812561] Sun, 04 March 2012 06:43 Go to previous message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Tried to run p2.generator ant task
<p2.generator
updateSite="D:/tasks/DI/di/DIBuildExample/updateSite"
site="file:D:/tasks/DI/di/DIBuildExample/updateSite/site.xml"
metadataRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
metadataRepositoryName=""content""
artifactRepository="file:D:/tasks/DI/di/DIBuildExample/updateSite/"
artifactRepositoryName=""artifacts""
/>
artifacts.xml and content.xml are created. But they do not contain any feature or plugin information. D:/tasks/DI/di/DIBuildExample/updateSite is a update site I built and contains features & plugins folders which have newly built feature. I also got error in my pde build:
[p2.generator] Generating metadata for null.

what's wrong I did and do I miss some settings?
Previous Topic:Adding Plugins to own update site
Next Topic:bundles.info can not be updated after install new plugin?
Goto Forum:
  


Current Time: Fri Mar 29 07:01:09 GMT 2024

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

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

Back to the top