piatok 28. apríla 2017

JasperServer 6.3.0: how to change default output destination in job scheduling

Default output to repository is impractical when you prefer storing to filesystem, e.g. to /var/local/reports/ directory. You can achieve that by editing following files:

in file scripts/scheduler/model/jobModel.js on two places change this one line:

saveToRepository: false,

to these two lines:

saveToRepository: false,
outputLocalFolder: "/var/local/reports/",

and in files:

optimized-scripts/scheduler/model/jobModel.js
optimized-scripts/scheduler/schedulerMain.js

change all occurences of this:

saveToRepository:!0

to this:

saveToRepository:0,outputLocalFolder:"/var/local/reports/"

and enjoy desired behaviour. JasperServer needs to have write permission to specified folder.

Žiadne komentáre:

Zverejnenie komentára