cancel
Showing results for 
Search instead for 
Did you mean: 

Change version number of SDK extension

Former Member
0 Kudos

Hi,

I've created some custom components with the SDK and just wanted to increase the version number of one compoment from 1.0 to 1.1.

Easy, I touhght, and I changed the version to 1.1 in the contribution.xml file of the extension.

But after that, the component didn't appeared in the Design Studio (14.0.3) anymore.

After changing the versoin back to 1.0, the extension was available again.

I've changed the version number in the contribution.xml, the code looks like this:


<sdkExtension xmlns="http://www.sap.com/bi/zen/sdk" id="com.x.y" title="myComponent" version="1.1" vendor="">

Is this the right place to change the version number?

Or is it a bug that the version can not be changed?

Could somebody confirm this behaviour?

Many thanks for you input,

ben

Accepted Solutions (1)

Accepted Solutions (1)

MustafaBensan
Active Contributor
0 Kudos

Hi Ben,

I don't have access to my dev environment at the moment but if I recall correctly, there is an Eclipse screen where you need to specify the Version Number in addition to the contribution.xml.  It should be described in the SDK Developer Guide steps.

Mustafa.

Former Member
0 Kudos

Thanks Mustafa,

just found it out.

Next time I'll read the docs before asking dumb questions

Greets,

ben

Former Member
0 Kudos

Hi Mustafa,

I got another issue regarding this.

I've changed the version in MANIFEST.MF and in contribution.xml.

But when I install the extension, it still shows me something like version 1.0.0.201504301128 (instead of 1.1.0.201504301128)

When I got to Tools->Platform extensions, the extension is listed with version 1.1.

When I go to Help->About->Installation Details, its listed with 1.0.0.201504301128

Where can I update this version number?

Many thanks,

ben

Here's a screenshot to show what I mean:

former_member194504
Active Contributor
0 Kudos

Hi Ben,

Did you made the changes in MANIFEST.MF and contribution.xml version and deployed it in the feature project already you have creted? if thats the case, try to delete your feature project and create the new one after you modified everything in the MANIFEST.MF and in contribution.xml.

When you create a feautre project, remind to give the version properly.

Thanks,

Nithyanandam

Former Member
0 Kudos

Hi Nithyanandam,

thanks a lot - that worked.

Is this the only way to change the version number of a compoment?

It's a little bit impractical to re-create the feature project every time you change the version...

Anyway - it works, and this is most important

Greets,

ben

EDIT:

Just tested it again, and its possible to change the version number without recreating the feature.

Important: After you changed the feature version (in feature.xml) you have to delete the old feature-version from category.xml and add the new version. Guess that was my mistake I made the first time...

former_member194504
Active Contributor
0 Kudos

Hi Ben,

I am afraid that is the only way i know. Maybe Mustafa have some thoughts on this.

Thanks,

Nithyanandam

Former Member
0 Kudos

See my updated answer, it works w/o recreating the feature. Just don't forget to update the category.xml with the new version.

Cheers,

ben

Answers (2)

Answers (2)

former_member194504
Active Contributor
0 Kudos

hi ben, yes i have tried that and its worked for me too 🙂 Thanks, Nithyanandam

Former Member
0 Kudos

Hm, sometimes you just need to read the documentation...

From the docs:


If you choose a value other than 1.0 for element <sdkExtension>, attribute version, then adjust the first two numbers of the version number (major and minor version number) in the Bundle-Version

12 © 2014 SAP SE or an SAP affiliate company. All rights reserved.

Developer Guide: Design Studio SDK

Creating an SDK Extension

entry in the MANIFEST.MF file accordingly. The first two numbers of the Bundle-Version and the version of the SDK extension must match.

So, you just need to set the the version number in the manifest.xml too and it works perfectly:


Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: XX

Bundle-SymbolicName: com.x.y;singleton:=true

Bundle-Version: 1.1.0.qualifier

Require-Bundle: com.sap.ip.bi.zen.rt.components.sdk.eclipse

Bundle-Vendor: comp