Category: | Bug report |
Priority: | High |
Status: | Assigned |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
There is a problem when I try to open a file in iReport using the command line. If the file is in the current working directory, the file can only be specified using a full path. This is because the startup script does a 'cd' to the iReport/bin dir. This behaviour results in all kind of problems when using reports with relative paths.
I have removed the iReport.sh script, and changed the bin/startup.sh script: instead of EXEDIR=`pwd`, put EXEDIR=`dirname $0`.
This leads to a different bug in IReportCompiler on line 1781:
new File(jrf.getReport().getFilename()).getParent() returns a null when the filename did not include a path. One should do the following for safety: new File(jrf.getReport().getFilename()).getAbsoluteFile().getParent().