tortois Posted October 25, 2006 Share Posted October 25, 2006 Hello, I'd like to ask for advice on developing reports using ireport in eclipse environment including cvs repository. I'd like multiple users to be able to edit and test-run report templates. Problem is that report templates are retrieved from cvs repository to eclipse workspace. Workspace location can vary from user to user.For example my workspace location is "c:/workspace/" while the same projects retrieved from cvs at my friend's machine are placed in "c:/prj/workspace/".For sample project including report templates my project location would be like "c:/workspace/myreports". My report templates use subreports, images and other resources that depend on file path. Sample subreport expression is set as follows:subreport expression class: java.io.Filesubreport expression: new File($P{baseDir}, "MySubreport.jasper") baseDir is a master report's parameter of type java.io.File set to a default value of:new File("c:/workspace/myreports") This is causing problems since sample report runs fine on my machine (since path points to an existing file) but at my friend's it won't. How to overcome problem of different workspace locations? Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now