|
Re: How can I change BIRT runtime classpath? [message #538440 is a reply to message #538366] |
Mon, 07 June 2010 16:03 |
|
Csaba,
I do not think this is possible currently. Once the classpath has been
modified on the engine config, I do not believe it can be changed to
remove cp entries. It may be worth trying it on the task,
task.getAppContext().put..
but I do not think this will work.
Jason
n 6/7/2010 9:26 AM, Csaba wrote:
> Hello Guys,
>
> I have static report design files with references to Java event handler
> classes.
>
> I run these reports with my code using BIRT RE API.
>
> Since BIRT cannot see my Java event-handlers, I have to add them before
> generation as follows:
> engineConfig.getAppContext().put(EngineConstants.WEBAPP_CLAS SPATH_KEY,
> "_a jar file or individual classes_");
>
> How can I set this BIRT classpath more times? My experience is that a
> resetting/an overwrite is not considered. I need to
> change/set it every time I want to generate a new report.
>
>
> Many thanks in advance!
> Csaba
|
|
|
|
Re: How can I change BIRT runtime classpath? [message #539077 is a reply to message #539012] |
Wed, 09 June 2010 14:40 |
|
One way to do this is to put your jars in the resource folder (set the
resource folder on the EngineConfig), then add the jar to the resources
tab in the report design. For example if I have two jars each with its
own implementation of the text report item event handler, I could add
jar1 to report1 in the resources tab and jar2 to report2. Then specify
the proper package.classname for the event handler in the report. Set
the resource folder in the engine config and run either report and the
proper jar should be picked up. I just tested this in the designer and
it worked fine.
Jason
On 6/9/2010 6:41 AM, Csaba wrote:
> Jason,
>
> I need to set/change BIRT runtime classpath dynamically.
>
> Is there some workaround solution for this?
>
> Stopping and restarting BIRT framework again and again is a quite ugly
> and bad solution...and I think, we cannot afford it.
>
> Thanks,
> Csaba
|
|
|
Powered by
FUDForum. Page generated in 0.02665 seconds