Page 1 of 1

reportDirectory != relativeReportsDirectory

PostPosted: Thu Jul 25, 2013 5:41 pm
by stefanoni
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

Re: reportDirectory != relativeReportsDirectory

PostPosted: Fri Jul 26, 2013 9:14 am
by rgansevles
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

Re: reportDirectory != relativeReportsDirectory

PostPosted: Thu Sep 05, 2013 6:16 pm
by stefanoni
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 2637 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 :-)