[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ve-dev] Need to get plug-in path
|
Hi,
Sorry for being bit hasty in posting!
I found a soultion.
I can use IPath.makeAbsolute() before passing to newLibraryEntry().
Please confirm if this is ok or there is another way.
Thanks and regards,
Janak
> -----Original Message-----
> From: ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On
> Behalf Of Janak Mulani
> Sent: Monday, October 03, 2005 6:00 PM
> To: ve-Dev@Eclipse. Org
> Subject: [ve-dev] Need to get plug-in path
>
>
> Hi,
>
> I need to include a jar file from our plugin in the classpath Container.
>
> For this I need to know the absolute path of our plugin on the user's
> machine. How can I do it?
>
>
> In Eclipse 3.0.x the following worked:
>
> Bundle bundle = Platform.getBundle("plugin name");
> bundlePaths = bundle.getLocation().split("@");
> path = new Path(bundlePaths[1] + "my.jar");
> JavaCore.newLibraryEntry(path,null,null)
>
> In Eclipse 3.1:
> The above does not work because getLocation90 returns relative
> path and not
> absolute path. The reason is that
> ConfigurationActivator.getBudlesToInstall() is now storing relative paths
> instead of absolute path.
>
> newLibraryEntry(path, null, null) expects abs path, so its
> assertion fails.
>