Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Is it possible to set plugin and feature versions from ant build?
Is it possible to set plugin and feature versions from ant build? [message #492722] Wed, 21 October 2009 14:03 Go to next message
Andreas Gellendin is currently offline Andreas GellendinFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all,

We have developed a RCP, which is a component of another product.
That's why the RCP version and the version of all it's plugins that we
developed shall be the same than the version of the other product.

It would be nice, if we could pass the version to the pdebuild via -D
property or something like that. The only way I found is to pass the
context qualifier, but not the whole version number.

Is there a way to set it from the build script and avoid to change all
manifest.mf and feature.xml files manually.

-Andreas
Re: Is it possible to set plugin and feature versions from ant build? [message #493324 is a reply to message #492722] Sat, 24 October 2009 19:42 Go to previous messageGo to next message
Alain  is currently offline Alain Friend
Messages: 115
Registered: July 2009
Senior Member
Hi Andreas

I have the same issue about the version numbering.
Did you find any solution for that?

Thanks for your answer,
Alain.
Re: Is it possible to set plugin and feature versions from ant build? [message #493422 is a reply to message #493324] Mon, 26 October 2009 08:03 Go to previous messageGo to next message
Andreas Gellendin is currently offline Andreas GellendinFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Alain,

Unfortunately not.
It seems, that there is no better solution than to patch all files
(Manifest.mf and feature.xml) with the new version number.

Has anyone a better solution?
-Andreas



Alain schrieb:
> Hi Andreas
>
> I have the same issue about the version numbering.
> Did you find any solution for that?
>
> Thanks for your answer,
> Alain.
Re: Is it possible to set plugin and feature versions from ant build? [message #493427 is a reply to message #493422] Mon, 26 October 2009 08:26 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hello,

I think a solution could be to use a template MANIFEST.MF files, and to generate the correct MANIFEST.MF from it according to this property in your build. for example in postFetch task (for example by using a <replace token="XXX_VERSION_XXX.jar" value="${version}" file="META-INF/MANIFEST.MF" />)

HTH


--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Is it possible to set plugin and feature versions from ant build? [message #602884 is a reply to message #492722] Sat, 24 October 2009 19:42 Go to previous message
Alain  is currently offline Alain Friend
Messages: 115
Registered: July 2009
Senior Member
Hi Andreas

I have the same issue about the version numbering.
Did you find any solution for that?

Thanks for your answer,
Alain.
Re: Is it possible to set plugin and feature versions from ant build? [message #602894 is a reply to message #493324] Mon, 26 October 2009 08:03 Go to previous message
Andreas Gellendin is currently offline Andreas GellendinFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Alain,

Unfortunately not.
It seems, that there is no better solution than to patch all files
(Manifest.mf and feature.xml) with the new version number.

Has anyone a better solution?
-Andreas



Alain schrieb:
> Hi Andreas
>
> I have the same issue about the version numbering.
> Did you find any solution for that?
>
> Thanks for your answer,
> Alain.
Re: Is it possible to set plugin and feature versions from ant build? [message #602897 is a reply to message #493422] Mon, 26 October 2009 08:26 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hello,

I think a solution could be to use a template MANIFEST.MF files, and to generate the correct MANIFEST.MF from it according to this property in your build. for example in postFetch task (for example by using a <replace token="XXX_VERSION_XXX.jar" value="${version}" file="META-INF/MANIFEST.MF" />)

HTH


--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:Feature build.xml not generated in headless build
Next Topic:Programmatically adding a plug-in dependency
Goto Forum:
  


Current Time: Wed Apr 24 19:40:33 GMT 2024

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

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

Back to the top