|
Re: how to get a bundle's root file path? [message #85213 is a reply to message #85172] |
Mon, 26 March 2007 21:35 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
Why should you assume that a bundle has a file path? I have bundles running directly from SQL databases and remote webservers.
Perhaps it would be better if you took a step back and explained what it is that you're trying to achieve?
Alex.
|
|
|
|
|
|
Re: how to get a bundle's root file path? [message #85361 is a reply to message #85331] |
Tue, 27 March 2007 13:20 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
That's sales blurb, not a technical reason :-)
What is it that you're trying to specifically configure for the WebAppContext? In other words, could there be a better way of doing this configuration that you're not aware of?
Lots of people (including the new help pages in Eclipse 3.3M6) use Jetty as a back end -- there's the org.eclipse.equinox.http.jetty bundle, which I'm assuming you're using. There should be no reason why you have to try and configure a WebAppContext.
So, going back to the question; what are you trying to configure in a WebAppContext?
Alex.
|
|
|
|
|
Re: how to get a bundle's root file path? [message #85447 is a reply to message #85402] |
Tue, 27 March 2007 15:44 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
I think you'd be better off trying to get it working with the Jetty jars, in the way that the help server runs web applications. You can't always guarantee a path to a file (e.g. if the bundle is Jar'd up) so the approach of trying to derive a path isn't also guaranteed.
If you really want files, you're best off extracting some kind of template to the PluginStateLocation, which will be a file system with a real path and thus you can pass that in instead. It just means when running, your Jar needs to be auto-unzipped to there.
I'd suggest moving towards using the Jetty one rather than bundling your own in and reporting issues that you have with that ...
Have you seen this?
http://www.eclipsezone.com/eclipse/forums/t62852.html
Alex.
|
|
|
Re: how to get a bundle's root file path? [message #85462 is a reply to message #85402] |
Tue, 27 March 2007 15:47 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
I think you'd be better off trying to get it working with the Jetty jars, in the way that the help server runs web applications. You can't always guarantee a path to a file (e.g. if the bundle is Jar'd up) so the approach of trying to derive a path isn't also guaranteed.
If you really want files, you're best off extracting some kind of template to the PluginStateLocation, which will be a file system with a real path and thus you can pass that in instead. It just means when running, your Jar needs to be auto-unzipped to there.
I'd suggest moving towards using the Jetty one rather than bundling your own in and reporting issues that you have with that ...
Have you seen this?
http://www.eclipsezone.com/eclipse/forums/t62852.html
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.04936 seconds