Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Content.xml Generation(Removing the references in content.xml)
icon7.gif  Content.xml Generation [message #1061171] Thu, 30 May 2013 07:28 Go to next message
Margs E. is currently offline Margs E.
Messages: 14
Registered: March 2013
Junior Member
Hi All,

I have a problem,

Requirement is to remove un-needed software sites that apparently appear on our product's prefereces window upon plug-in installation (an issue encountered by the testing team which was assigned to me to fix).

In the feature.xml of that certain plug-in I saw the following line:
<url>
<update label="%updateSiteName" url="...//org.site.com/update.."/>
</url>


the exact url above is the one that has to be removed, so what i did was deleted this, build and do the entire testing process, but I did not get the desired output.

I tried to remove the <references> line from the content.xml generated, do the entire testing process, and yes! the URL did not appear as desired.

However, I did that manually.

QUESTION: How do I configure the content.xml? can you point me to the exact script which generates it?PLease Please! thanks! Smile
Re: Content.xml Generation [message #1061180 is a reply to message #1061171] Thu, 30 May 2013 08:31 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
We had the same issue and did not find a way to do that in p2 nor PDE
nor Tycho.
So we did implement a Maven plugin to remove references during our Tycho
build:
https://github.com/jbosstools/jbosstools-maven-plugins/blob/master/tycho-plugins/repository-utils/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java#L344
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Content.xml Generation [message #1061284 is a reply to message #1061180] Thu, 30 May 2013 22:17 Go to previous messageGo to next message
Margs E. is currently offline Margs E.
Messages: 14
Registered: March 2013
Junior Member
Hi Mickael,

Actually, I ve been working on this for one week now Sad

But Thanks for replying! Smile

SO you mean, we can't fix this using the PDE headless build?

We are using an Ant in our headless build. And I assume you mean the way you solved your problem was to create a maven (Ant for us) in removing the references in content.xml?

SOrry I am a newbie in this field, so please spare my ignorance. hehe Smile
Re: Content.xml Generation [message #1061323 is a reply to message #1061284] Fri, 31 May 2013 04:27 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
On 05/31/2013 04:17 AM, Margs E. wrote:
> SO you mean, we can't fix this using the PDE headless build?

I mean we did not find any existing automated way to achieve that in p2
or PDE.
p2 does automatically add the feature site references to the repository
when publishing, and I did not find a flag to avoid that behavior.

> We are using an Ant in our headless build. And I assume you mean the way
> you solved your problem was to create a maven (Ant for us) in removing
> the references in content.xml?

We did create a Maven plugin which manipulates the metadata to remove
the references.
In Ant, you could write an Ant task to achieve the same thing, and
invoke this task after p2 creates the repository.

HTH
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Content.xml Generation [message #1061599 is a reply to message #1061323] Mon, 03 June 2013 04:48 Go to previous message
Margs E. is currently offline Margs E.
Messages: 14
Registered: March 2013
Junior Member
Hi Mickael!

Thanks! I can now install without having those unnecessary sites in my preferences window. Smile

I followed your suggestion, I created an ant script that deletes the references from the metadata Smile
Thanks for your help! Smile
Previous Topic:Exporting OSGI product export with target
Next Topic:Trouble with synchronize extension
Goto Forum:
  


Current Time: Wed Jul 30 05:25:22 EDT 2014

Powered by FUDForum. Page generated in 0.02644 seconds