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 13:31  |
Eclipse User |
|
|
|
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 #111744 is a reply to message #111731] |
Mon, 04 February 2008 07:30   |
Eclipse User |
|
|
|
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 15:57   |
Eclipse User |
|
|
|
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 14:30   |
Eclipse User |
|
|
|
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 01:37  |
Eclipse User |
|
|
|
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 15:04  |
Eclipse User |
|
|
|
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 01:32  |
Eclipse User |
|
|
|
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 07:30  |
Eclipse User |
|
|
|
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 15:57  |
Eclipse User |
|
|
|
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 14:30  |
Eclipse User |
|
|
|
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 01:37  |
Eclipse User |
|
|
|
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
>>>>>>
>>>>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Fri Jul 25 15:04:38 EDT 2025
Powered by FUDForum. Page generated in 0.08461 seconds
|