Skip to main content



      Home
Home » Archived » BIRT » Finding EngineConfig EngineHome dynamically
Finding EngineConfig EngineHome dynamically [message #92339] Thu, 17 November 2005 14:56 Go to next message
Eclipse UserFriend
so EngineConfig has something like

String engineHome
.....
engineConfig.setEngineHome(engineHome);


I want to calulate where engine home is at runtime
Is there a way to do this using BIRT API?

Was thinking I might need to get the plugin registry and walk it looking
for it that way but hoping there might be a nicer way?

Thanks for any ideas here
Re: Finding EngineConfig EngineHome dynamically [message #92835 is a reply to message #92339] Fri, 18 November 2005 15:27 Go to previous messageGo to next message
Eclipse UserFriend
Mike,

The call setEngineHome is just setting a System property.
I dont see an accessor in the code.
Could you call System.getProperty?

Jason Weathersby
BIRT PMC


"Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
news:dlin9a$son$1@news.eclipse.org...
> so EngineConfig has something like
>
> String engineHome
> ....
> engineConfig.setEngineHome(engineHome);
>
>
> I want to calulate where engine home is at runtime
> Is there a way to do this using BIRT API?
>
> Was thinking I might need to get the plugin registry and walk it looking
> for it that way but hoping there might be a nicer way?
>
> Thanks for any ideas here
>
>
Re: Finding EngineConfig EngineHome dynamically [message #94192 is a reply to message #92835] Wed, 23 November 2005 12:40 Go to previous message
Eclipse UserFriend
hmmm possibly, I currently solved this by calulating the location by
inspecting the bundle registry for the birt viewer plugin path. Not sure
if this is the best solution though. I'll make a note to try the
getProperty routine and see if it gives anything useful. Not sure it
will though :D

Thanks Jason for reply!

- Mike



Jason Weathersby wrote:
> Mike,
>
> The call setEngineHome is just setting a System property.
> I dont see an accessor in the code.
> Could you call System.getProperty?
>
> Jason Weathersby
> BIRT PMC
>
>
> "Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
> news:dlin9a$son$1@news.eclipse.org...
>
>>so EngineConfig has something like
>>
>>String engineHome
>>....
>>engineConfig.setEngineHome(engineHome);
>>
>>
>>I want to calulate where engine home is at runtime
>>Is there a way to do this using BIRT API?
>>
>>Was thinking I might need to get the plugin registry and walk it looking
>>for it that way but hoping there might be a nicer way?
>>
>>Thanks for any ideas here
>>
>>
>
>
>
Previous Topic:java.lang.NoSuchMethodError: org.apache.jasper.runtime.JspRuntimeLibrary.include
Next Topic:xalan xerces, birt 2.x and JRE 1.5
Goto Forum:
  


Current Time: Sat May 24 02:11:25 EDT 2025

Powered by FUDForum. Page generated in 0.03458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top