Yes bundle filename.

Since second installation also has  same file name..I think this would work
for me.

-----Original Message-----
From: Bertrand Delacretaz [mailto:[email protected]] 
Sent: Wednesday, April 14, 2010 12:44 PM
To: [email protected]; [email protected]
Subject: Re: How to check if a bundle is already installed?

On Wed, Apr 14, 2010 at 5:00 AM, Mahammad Nasir <[email protected]>
wrote:
>
> Thanks, I think this will solve my problem wherever I have symbolic 
> name. I have some places I have only bundle physical name. Is there 
> any otherways to check based on physical name?...

The bundle filename you mean?

There's Bundle.getLocation() but that does not change if the bundle is
updated after being installed, see
http://www.osgi.org/javadoc/r4v42/org/osgi/framework/Bundle.html#getLocation
()
- so you usually cannot rely on that. The Bundle-SymbolicName/Version combo
is the only stable identifier AFAIK.

-Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to