Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to change plugin version automaticly?
How to change plugin version automaticly? [message #480132] Thu, 13 August 2009 22:26 Go to next message
Eclipse User
Originally posted by: zhiwei.ecquaria.com

Our product's client have 10+ plugins,so I create feature&site for them.
the problem is when I upgrade version(e.g. from 1.0.1 to 1.0.2),I have
to change the 10+ plugins manually 1st,then change feature&site's version,
then can rebuild the site.
So my question is 'Is there a way can do it automaticly?'

Another problem is for buildid,when I use site project build,how to create
a dynamic buildid for the product?

PS.I think the eclipse should have the same problem when release a new
version.
Eclipse project how to handle it?
Re: How to change plugin version automaticly? [message #480164 is a reply to message #480132] Fri, 14 August 2009 04:21 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen Zschaler
Messages: 228
Registered: July 2009
Senior Member
You can always use java.util.Manifest to manipulate the manifest files
of the plugin projects to set the plugin ID.

Steffen

zhiwei wrote:
> Our product's client have 10+ plugins,so I create feature&site for them.
> the problem is when I upgrade version(e.g. from 1.0.1 to 1.0.2),I have
> to change the 10+ plugins manually 1st,then change feature&site's
> version,
> then can rebuild the site.
> So my question is 'Is there a way can do it automaticly?'
>
> Another problem is for buildid,when I use site project build,how to
> create a dynamic buildid for the product?
>
> PS.I think the eclipse should have the same problem when release a new
> version.
> Eclipse project how to handle it?
>
Re: How to change plugin version automaticly? [message #480213 is a reply to message #480132] Fri, 14 August 2009 08:09 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Because in eclipse code changes determine the version numbers - http://wiki.eclipse.org/Version_Numbering changing the code in a new stream implies manually changing the version numbers.

Are you supplying code fixes in your 1.0.1->1.0.2 upgrade?

In eclipse, all manifests contain entries like: 1.0.1.qualifier

During builds or exports, eclipse/PDE will replace the qualifier (usually with something like v20090814) so that during development, this week's build has a greater version number than last week's build.

All this to say, in eclipse we manually change 1.0.0 to 1.0.1 when we update the code in the new stream.

PW


Re: How to change plugin version automat icly? [message #480409 is a reply to message #480213] Sun, 16 August 2009 21:43 Go to previous message
Eclipse User
Originally posted by: zhiwei.ecquaria.com

As I saw,in most eclipse project.there are something like "Build id: {0}"
in
about.properties.so I dont know when I build site.xml,how could I let the
{0}
be a real build id.e.g. '200908171211'(the value=real build time)?
Previous Topic:[CommonNavigator] Best way to decorate when resource marker change
Next Topic:Re: Public API To Get The Web Browser Editor ID?
Goto Forum:
  


Current Time: Thu Aug 21 20:03:22 EDT 2014

Powered by FUDForum. Page generated in 0.01626 seconds