Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Retrieving the teneo version at runtime
[Teneo] Retrieving the teneo version at runtime [message #111713] Sun, 03 February 2008 18:31 Go to next message
Eclipse UserFriend
Originally posted by: Olaf.Groeger.gmx.de

Hi,

is it possible to determine the teneo version at runtime? I want to show the
versions of the used components of my program. The version of my own
program is trivial, the version of Hibernate is accessible with
Environment.VERSION, but how can this be done for teneo?

Olaf
Re: [Teneo] Retrieving the teneo version at runtime [message #111719 is a reply to message #111713] Sun, 03 February 2008 20:04 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Olaf,
I am not sure how to do that. The version should be somewhere in the plugin and also the jar is
named using the build id.

Nick, do you know if it is possible to read the plugin version from somewhere at runtime or is the
build number stored in another file by the build process?

gr. Martin

Olaf Groeger wrote:
> Hi,
>
> is it possible to determine the teneo version at runtime? I want to show the
> versions of the used components of my program. The version of my own
> program is trivial, the version of Hibernate is accessible with
> Environment.VERSION, but how can this be done for teneo?
>
> Olaf
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Retrieving the teneo version at runtime [message #111731 is a reply to message #111719] Mon, 04 February 2008 06:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Olaf.Groeger.gmx.de

Hello Martin,

thanks for your response. I searched the code once more and i'm fairly sure
that the number can only be found in the manifest and in the jar name, as
you proposed.

Thanks
Olaf

> Hi Olaf,
> I am not sure how to do that. The version should be somewhere in the
> plugin and also the jar is named using the build id.
>
> Nick, do you know if it is possible to read the plugin version from
> somewhere at runtime or is the build number stored in another file by the
> build process?
>
> gr. Martin
>
> Olaf Groeger wrote:
>> Hi,
>>
>> is it possible to determine the teneo version at runtime? I want to show
>> the versions of the used components of my program. The version of my own
>> program is trivial, the version of Hibernate is accessible with
>> Environment.VERSION, but how can this be done for teneo?
>>
>> Olaf
>>
>
>
Re: [Teneo] Retrieving the teneo version at runtime [message #111744 is a reply to message #111731] Mon, 04 February 2008 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Martin, Olaf,

If you are running in an OSGi instance, the OSGi API can tell you what you
need to know.

From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
name) from the Platform::getBundle() method), you can get all of its
manifest headers:

Bundle::getHeaders()

One of these is the Bundle-Version.

HTH,

Christian


Olaf Groeger wrote:

> Hello Martin,
>
> thanks for your response. I searched the code once more and i'm fairly
> sure that the number can only be found in the manifest and in the jar
> name, as you proposed.
>
> Thanks
> Olaf
>
>> Hi Olaf,
>> I am not sure how to do that. The version should be somewhere in the
>> plugin and also the jar is named using the build id.
>>
>> Nick, do you know if it is possible to read the plugin version from
>> somewhere at runtime or is the build number stored in another file by the
>> build process?
>>
>> gr. Martin
>>
>> Olaf Groeger wrote:
>>> Hi,
>>>
>>> is it possible to determine the teneo version at runtime? I want to show
>>> the versions of the used components of my program. The version of my own
>>> program is trivial, the version of Hibernate is accessible with
>>> Environment.VERSION, but how can this be done for teneo?
>>>
>>> Olaf
>>>
>>
>>
Re: [Teneo] Retrieving the teneo version at runtime [message #111774 is a reply to message #111744] Mon, 04 February 2008 20:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Olaf.Groeger.gmx.de

Hello Christian,

thanks for your tip. Actually i have a "usual" java application. But it
would be easy to migrate to OSGI. It is more or less a technical study and
will never go productive. Thus it is a interesting idea.

Thanks
Olaf


> Hi, Martin, Olaf,
>
> If you are running in an OSGi instance, the OSGi API can tell you what you
> need to know.
>
> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
> name) from the Platform::getBundle() method), you can get all of its
> manifest headers:
>
> Bundle::getHeaders()
>
> One of these is the Bundle-Version.
>
> HTH,
>
> Christian
>
>
> Olaf Groeger wrote:
>
>> Hello Martin,
>>
>> thanks for your response. I searched the code once more and i'm fairly
>> sure that the number can only be found in the manifest and in the jar
>> name, as you proposed.
>>
>> Thanks
>> Olaf
>>
>>> Hi Olaf,
>>> I am not sure how to do that. The version should be somewhere in the
>>> plugin and also the jar is named using the build id.
>>>
>>> Nick, do you know if it is possible to read the plugin version from
>>> somewhere at runtime or is the build number stored in another file by
>>> the build process?
>>>
>>> gr. Martin
>>>
>>> Olaf Groeger wrote:
>>>> Hi,
>>>>
>>>> is it possible to determine the teneo version at runtime? I want to
>>>> show the versions of the used components of my program. The version of
>>>> my own program is trivial, the version of Hibernate is accessible with
>>>> Environment.VERSION, but how can this be done for teneo?
>>>>
>>>> Olaf
>>>>
>>>
>>>
Re: [Teneo] Retrieving the teneo version at runtime [message #111820 is a reply to message #111774] Tue, 05 February 2008 19:30 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Olaf,
Here is some related info I received from Nick Boldt:

Plugin version, including qualifier, is stored in each feature's
feature.xml and each plugin's MANIFEST.MF. It should be possible to
retrieve that using one of the following methods:

a) parse feature.xml using DOM tree or text/regexp-searching for
"version="..."
b) parse MANIFEST.MF using some API from OSGi, or just
text/regexp-searching for "Bundle-Version: ..."

gr. Martin

Olaf Groeger wrote:
> Hello Christian,
>
> thanks for your tip. Actually i have a "usual" java application. But it
> would be easy to migrate to OSGI. It is more or less a technical study and
> will never go productive. Thus it is a interesting idea.
>
> Thanks
> Olaf
>
>
>> Hi, Martin, Olaf,
>>
>> If you are running in an OSGi instance, the OSGi API can tell you what you
>> need to know.
>>
>> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
>> name) from the Platform::getBundle() method), you can get all of its
>> manifest headers:
>>
>> Bundle::getHeaders()
>>
>> One of these is the Bundle-Version.
>>
>> HTH,
>>
>> Christian
>>
>>
>> Olaf Groeger wrote:
>>
>>> Hello Martin,
>>>
>>> thanks for your response. I searched the code once more and i'm fairly
>>> sure that the number can only be found in the manifest and in the jar
>>> name, as you proposed.
>>>
>>> Thanks
>>> Olaf
>>>
>>>> Hi Olaf,
>>>> I am not sure how to do that. The version should be somewhere in the
>>>> plugin and also the jar is named using the build id.
>>>>
>>>> Nick, do you know if it is possible to read the plugin version from
>>>> somewhere at runtime or is the build number stored in another file by
>>>> the build process?
>>>>
>>>> gr. Martin
>>>>
>>>> Olaf Groeger wrote:
>>>>> Hi,
>>>>>
>>>>> is it possible to determine the teneo version at runtime? I want to
>>>>> show the versions of the used components of my program. The version of
>>>>> my own program is trivial, the version of Hibernate is accessible with
>>>>> Environment.VERSION, but how can this be done for teneo?
>>>>>
>>>>> Olaf
>>>>>
>>>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Retrieving the teneo version at runtime [message #111868 is a reply to message #111820] Thu, 07 February 2008 06:37 Go to previous message
Eclipse UserFriend
Originally posted by: Olaf.Groeger.gmx.de

Hello Martin,

thank you very much for the info. I finally chose to migrate my project to
OSGI and use its API. That works like acharm. As do teneo. I'm really
impressed about teneo. Using a database couldn't be easier anymore. Thank
you for your great work!

Olaf


> Hi Olaf,
> Here is some related info I received from Nick Boldt:
>
> Plugin version, including qualifier, is stored in each feature's
> feature.xml and each plugin's MANIFEST.MF. It should be possible to
> retrieve that using one of the following methods:
>
> a) parse feature.xml using DOM tree or text/regexp-searching for
> "version="..."
> b) parse MANIFEST.MF using some API from OSGi, or just
> text/regexp-searching for "Bundle-Version: ..."
>
> gr. Martin
>
> Olaf Groeger wrote:
>> Hello Christian,
>>
>> thanks for your tip. Actually i have a "usual" java application. But it
>> would be easy to migrate to OSGI. It is more or less a technical study
>> and will never go productive. Thus it is a interesting idea.
>>
>> Thanks
>> Olaf
>>
>>
>>> Hi, Martin, Olaf,
>>>
>>> If you are running in an OSGi instance, the OSGi API can tell you what
>>> you need to know.
>>>
>>> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
>>> name) from the Platform::getBundle() method), you can get all of its
>>> manifest headers:
>>>
>>> Bundle::getHeaders()
>>>
>>> One of these is the Bundle-Version.
>>>
>>> HTH,
>>>
>>> Christian
>>>
>>>
>>> Olaf Groeger wrote:
>>>
>>>> Hello Martin,
>>>>
>>>> thanks for your response. I searched the code once more and i'm fairly
>>>> sure that the number can only be found in the manifest and in the jar
>>>> name, as you proposed.
>>>>
>>>> Thanks
>>>> Olaf
>>>>
>>>>> Hi Olaf,
>>>>> I am not sure how to do that. The version should be somewhere in the
>>>>> plugin and also the jar is named using the build id.
>>>>>
>>>>> Nick, do you know if it is possible to read the plugin version from
>>>>> somewhere at runtime or is the build number stored in another file by
>>>>> the build process?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Olaf Groeger wrote:
>>>>>> Hi,
>>>>>>
>>>>>> is it possible to determine the teneo version at runtime? I want to
>>>>>> show the versions of the used components of my program. The version
>>>>>> of my own program is trivial, the version of Hibernate is accessible
>>>>>> with Environment.VERSION, but how can this be done for teneo?
>>>>>>
>>>>>> Olaf
>>>>>>
>>>>>
>>
>
>
Re: [Teneo] Retrieving the teneo version at runtime [message #615385 is a reply to message #111713] Sun, 03 February 2008 20:04 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Olaf,
I am not sure how to do that. The version should be somewhere in the plugin and also the jar is
named using the build id.

Nick, do you know if it is possible to read the plugin version from somewhere at runtime or is the
build number stored in another file by the build process?

gr. Martin

Olaf Groeger wrote:
> Hi,
>
> is it possible to determine the teneo version at runtime? I want to show the
> versions of the used components of my program. The version of my own
> program is trivial, the version of Hibernate is accessible with
> Environment.VERSION, but how can this be done for teneo?
>
> Olaf
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Retrieving the teneo version at runtime [message #615387 is a reply to message #111719] Mon, 04 February 2008 06:32 Go to previous message
Olaf Groeger is currently offline Olaf GroegerFriend
Messages: 13
Registered: July 2009
Junior Member
Hello Martin,

thanks for your response. I searched the code once more and i'm fairly sure
that the number can only be found in the manifest and in the jar name, as
you proposed.

Thanks
Olaf

> Hi Olaf,
> I am not sure how to do that. The version should be somewhere in the
> plugin and also the jar is named using the build id.
>
> Nick, do you know if it is possible to read the plugin version from
> somewhere at runtime or is the build number stored in another file by the
> build process?
>
> gr. Martin
>
> Olaf Groeger wrote:
>> Hi,
>>
>> is it possible to determine the teneo version at runtime? I want to show
>> the versions of the used components of my program. The version of my own
>> program is trivial, the version of Hibernate is accessible with
>> Environment.VERSION, but how can this be done for teneo?
>>
>> Olaf
>>
>
>
Re: [Teneo] Retrieving the teneo version at runtime [message #615389 is a reply to message #111731] Mon, 04 February 2008 12:30 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Martin, Olaf,

If you are running in an OSGi instance, the OSGi API can tell you what you
need to know.

From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
name) from the Platform::getBundle() method), you can get all of its
manifest headers:

Bundle::getHeaders()

One of these is the Bundle-Version.

HTH,

Christian


Olaf Groeger wrote:

> Hello Martin,
>
> thanks for your response. I searched the code once more and i'm fairly
> sure that the number can only be found in the manifest and in the jar
> name, as you proposed.
>
> Thanks
> Olaf
>
>> Hi Olaf,
>> I am not sure how to do that. The version should be somewhere in the
>> plugin and also the jar is named using the build id.
>>
>> Nick, do you know if it is possible to read the plugin version from
>> somewhere at runtime or is the build number stored in another file by the
>> build process?
>>
>> gr. Martin
>>
>> Olaf Groeger wrote:
>>> Hi,
>>>
>>> is it possible to determine the teneo version at runtime? I want to show
>>> the versions of the used components of my program. The version of my own
>>> program is trivial, the version of Hibernate is accessible with
>>> Environment.VERSION, but how can this be done for teneo?
>>>
>>> Olaf
>>>
>>
>>
Re: [Teneo] Retrieving the teneo version at runtime [message #615395 is a reply to message #111744] Mon, 04 February 2008 20:57 Go to previous message
Olaf Groeger is currently offline Olaf GroegerFriend
Messages: 13
Registered: July 2009
Junior Member
Hello Christian,

thanks for your tip. Actually i have a "usual" java application. But it
would be easy to migrate to OSGI. It is more or less a technical study and
will never go productive. Thus it is a interesting idea.

Thanks
Olaf


> Hi, Martin, Olaf,
>
> If you are running in an OSGi instance, the OSGi API can tell you what you
> need to know.
>
> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
> name) from the Platform::getBundle() method), you can get all of its
> manifest headers:
>
> Bundle::getHeaders()
>
> One of these is the Bundle-Version.
>
> HTH,
>
> Christian
>
>
> Olaf Groeger wrote:
>
>> Hello Martin,
>>
>> thanks for your response. I searched the code once more and i'm fairly
>> sure that the number can only be found in the manifest and in the jar
>> name, as you proposed.
>>
>> Thanks
>> Olaf
>>
>>> Hi Olaf,
>>> I am not sure how to do that. The version should be somewhere in the
>>> plugin and also the jar is named using the build id.
>>>
>>> Nick, do you know if it is possible to read the plugin version from
>>> somewhere at runtime or is the build number stored in another file by
>>> the build process?
>>>
>>> gr. Martin
>>>
>>> Olaf Groeger wrote:
>>>> Hi,
>>>>
>>>> is it possible to determine the teneo version at runtime? I want to
>>>> show the versions of the used components of my program. The version of
>>>> my own program is trivial, the version of Hibernate is accessible with
>>>> Environment.VERSION, but how can this be done for teneo?
>>>>
>>>> Olaf
>>>>
>>>
>>>
Re: [Teneo] Retrieving the teneo version at runtime [message #615403 is a reply to message #111774] Tue, 05 February 2008 19:30 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Olaf,
Here is some related info I received from Nick Boldt:

Plugin version, including qualifier, is stored in each feature's
feature.xml and each plugin's MANIFEST.MF. It should be possible to
retrieve that using one of the following methods:

a) parse feature.xml using DOM tree or text/regexp-searching for
"version="..."
b) parse MANIFEST.MF using some API from OSGi, or just
text/regexp-searching for "Bundle-Version: ..."

gr. Martin

Olaf Groeger wrote:
> Hello Christian,
>
> thanks for your tip. Actually i have a "usual" java application. But it
> would be easy to migrate to OSGI. It is more or less a technical study and
> will never go productive. Thus it is a interesting idea.
>
> Thanks
> Olaf
>
>
>> Hi, Martin, Olaf,
>>
>> If you are running in an OSGi instance, the OSGi API can tell you what you
>> need to know.
>>
>> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
>> name) from the Platform::getBundle() method), you can get all of its
>> manifest headers:
>>
>> Bundle::getHeaders()
>>
>> One of these is the Bundle-Version.
>>
>> HTH,
>>
>> Christian
>>
>>
>> Olaf Groeger wrote:
>>
>>> Hello Martin,
>>>
>>> thanks for your response. I searched the code once more and i'm fairly
>>> sure that the number can only be found in the manifest and in the jar
>>> name, as you proposed.
>>>
>>> Thanks
>>> Olaf
>>>
>>>> Hi Olaf,
>>>> I am not sure how to do that. The version should be somewhere in the
>>>> plugin and also the jar is named using the build id.
>>>>
>>>> Nick, do you know if it is possible to read the plugin version from
>>>> somewhere at runtime or is the build number stored in another file by
>>>> the build process?
>>>>
>>>> gr. Martin
>>>>
>>>> Olaf Groeger wrote:
>>>>> Hi,
>>>>>
>>>>> is it possible to determine the teneo version at runtime? I want to
>>>>> show the versions of the used components of my program. The version of
>>>>> my own program is trivial, the version of Hibernate is accessible with
>>>>> Environment.VERSION, but how can this be done for teneo?
>>>>>
>>>>> Olaf
>>>>>
>>>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Retrieving the teneo version at runtime [message #615418 is a reply to message #111820] Thu, 07 February 2008 06:37 Go to previous message
Olaf Groeger is currently offline Olaf GroegerFriend
Messages: 13
Registered: July 2009
Junior Member
Hello Martin,

thank you very much for the info. I finally chose to migrate my project to
OSGI and use its API. That works like acharm. As do teneo. I'm really
impressed about teneo. Using a database couldn't be easier anymore. Thank
you for your great work!

Olaf


> Hi Olaf,
> Here is some related info I received from Nick Boldt:
>
> Plugin version, including qualifier, is stored in each feature's
> feature.xml and each plugin's MANIFEST.MF. It should be possible to
> retrieve that using one of the following methods:
>
> a) parse feature.xml using DOM tree or text/regexp-searching for
> "version="..."
> b) parse MANIFEST.MF using some API from OSGi, or just
> text/regexp-searching for "Bundle-Version: ..."
>
> gr. Martin
>
> Olaf Groeger wrote:
>> Hello Christian,
>>
>> thanks for your tip. Actually i have a "usual" java application. But it
>> would be easy to migrate to OSGI. It is more or less a technical study
>> and will never go productive. Thus it is a interesting idea.
>>
>> Thanks
>> Olaf
>>
>>
>>> Hi, Martin, Olaf,
>>>
>>> If you are running in an OSGi instance, the OSGi API can tell you what
>>> you need to know.
>>>
>>> From a Bundle (in Eclipse, this can be retrieved by ID (a.k.a. symbolic
>>> name) from the Platform::getBundle() method), you can get all of its
>>> manifest headers:
>>>
>>> Bundle::getHeaders()
>>>
>>> One of these is the Bundle-Version.
>>>
>>> HTH,
>>>
>>> Christian
>>>
>>>
>>> Olaf Groeger wrote:
>>>
>>>> Hello Martin,
>>>>
>>>> thanks for your response. I searched the code once more and i'm fairly
>>>> sure that the number can only be found in the manifest and in the jar
>>>> name, as you proposed.
>>>>
>>>> Thanks
>>>> Olaf
>>>>
>>>>> Hi Olaf,
>>>>> I am not sure how to do that. The version should be somewhere in the
>>>>> plugin and also the jar is named using the build id.
>>>>>
>>>>> Nick, do you know if it is possible to read the plugin version from
>>>>> somewhere at runtime or is the build number stored in another file by
>>>>> the build process?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Olaf Groeger wrote:
>>>>>> Hi,
>>>>>>
>>>>>> is it possible to determine the teneo version at runtime? I want to
>>>>>> show the versions of the used components of my program. The version
>>>>>> of my own program is trivial, the version of Hibernate is accessible
>>>>>> with Environment.VERSION, but how can this be done for teneo?
>>>>>>
>>>>>> Olaf
>>>>>>
>>>>>
>>
>
>
Previous Topic:@ManyToOne not working correctly
Next Topic:[Teneo] OutOfMemory error
Goto Forum:
  


Current Time: Sat Apr 20 05:13:22 GMT 2024

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

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

Back to the top