Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumseclipse plugins - external jars & environment variables - build problem
https://www.eclipse.org/forums/index.php/mv/msg/189576/601266/#msg_601266
I am working on adding new views to my eclipse perspective.
I would like to use external jars, using environment variable to find them.
Now, that works runtime using the external keywork in the MANIFEST file; for example:
but it doesn't work at build time, I tried to change the build page/build.properties file in the plugin.xml editor and that doesn't work.
When I hit the "export deployable plugin" button, it crashes saying that the jdom classes import couldn't be resolved.
So, the temporary workaround I have got is to export the plugin with Eclipse / File / Export and then manually change things such as the manifest file that end up empty.
In short, how to use jars at "plug-in build time" that are not part of any eclipse project and can only be found using an environment variable?
Thanks in advance.
Mikael]]>Mikael 2009-09-06T22:08:23-00:00Re: eclipse plugins - external jars & environment variables - build problem
https://www.eclipse.org/forums/index.php/mv/msg/189576/601370/#msg_601370
I workaround would be to translate the jars into plug-in projects.
Mikael wrote:
> Hi,
>
> I am working on adding new views to my eclipse perspective.
>
> I would like to use external jars, using environment variable to find them.
>
> Now, that works runtime using the external keywork in the MANIFEST file;
> for example:
>
> Bundle-Classpath: external:$EXTLIBS$/jdom-1.1/build/jdom.jar,
> .
>
> but it doesn't work at build time, I tried to change the build
> page/build.properties file in the plugin.xml editor and that doesn't work.
> When I hit the "export deployable plugin" button, it crashes saying that
> the jdom classes import couldn't be resolved.
>
>
> So, the temporary workaround I have got is to export the plugin with
> Eclipse / File / Export and then manually change things such as the
> manifest file that end up empty.
>
>
> In short, how to use jars at "plug-in build time" that are not part of
> any eclipse project and can only be found using an environment variable?
>
> Thanks in advance.
>
> Mikael
>]]>Lars Vogel2009-09-08T20:13:31-00:00