The birt extension is open source and is shared on [ivySupplements@sourceforge][1].
Your code could work with a very simple modification in [IvyBirtReportService.getReportDesign(String)][2].
/**
* Return the absolute path of the report design. If a design repository
* exists, then the path will be calculated, otherwise the report design
* contains already the absolute path
* @param reportDesign
* @return
*/
private String getReportDesign(String reportDesign){
if(designRepository != null && !designRepository.equals("")){
return designRepository + "/" + reportDesign + BIRT_REPORT_SUFFIX;
}else{
return reportDesign + BIRT_REPORT_SUFFIX;
}
}
I suggest that you enhance the code for your needs. And if its a save implementation that could work for the whole community: share it or else fork it.
[1]: http://sourceforge.net/p/ivysupplements/code/HEAD/tree/extensions/birt/branches/5.0/ch.ivyteam.ivy.extension.birt/
[2]: http://sourceforge.net/p/ivysupplements/code/HEAD/tree/extensions/birt/branches/5.0/ch.ivyteam.ivy.extension.birt/src/ch/ivyteam/ivy/extension/birt/IvyBirtReportService.java