reportDirectory != relativeReportsDirectory

Questions and answers on developing, deploying and using plugins and JavaBeans

reportDirectory != relativeReportsDirectory

Postby stefanoni » Thu Jul 25, 2013 5:41 pm

The depreciated
plugins.jasperPluginRMI.reportDirectory should be replaced by
plugins.jasperPluginRMI.relativeReportsDirectory.

If I look at the value of this two versions, it looks like this

=> plugins.jasperPluginRMI.relativeReportsDirectory
JavaString ""

=>plugins.jasperPluginRMI.reportDirectory
JavaString "C:\servoy_71_workspace\ProzedDbStrukturAnalyseDoku\servoy_jasper"


the ....servoy.properties contains the parameter
directory.jasper.report=C\:\\servoy_71_workspace\\ProzedDbStrukturAnalyseDoku\\servoy_jasper

How can the depreciated reportDirectory be replaced, when relativeReportsDirectory doesn't show the same value ?

Thank you for more informations
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: reportDirectory != relativeReportsDirectory

Postby rgansevles » Fri Jul 26, 2013 9:14 am

Alessandro,

It should be replaced but the value should be adjusted as well.

The idea is that when you create the solution you do not (want to) know the actual report directory on the server when deployed.
You only know where the files are located relative to the base dir.

If you use plugins.jasperPluginRMI.relativeReportsDirectory files will be located in <reportdir_defined_in_admin_page>/<relativeReportsDirectory>.
So if directlories are moved around the solution will still work, only the directory on the admin page needs to be updated.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: reportDirectory != relativeReportsDirectory

Postby stefanoni » Thu Sep 05, 2013 6:16 pm

I checked it out like you suggested, but I'm maybe blind...

in the servoy.properties there are two parameters:
directories.jasper.extra=C\:\\Servoy71_ProdServer\\test
directory.jasper.report=C\:\\Servoy71_ProdServer\\application_server\\server\\reports\\test

this fits to the view in the admin page (7.x. server)

03.jpg
03.jpg (17.84 KiB) Viewed 2600 times

and this fits to the https://www.servoyforge.net/projects/se ... ports/wiki

but where is defined your suggested ..../<relativeReportsDirectory> ?

Thank you for relume me :-)
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 6 guests

cron