升级到新版本的 JasperServer
我究竟该如何更新到 JasperServer 的新版本?他们的网站没有关于如何实现这一点的真正文档。
我已经下载了 JasperServer 存档(Windows,顺便说一句),但下一步是什么?
这样做的原因是新版本的 iReport 与其自己的新 jrxml 文件存在某种文件兼容性问题,当前的修复是更新 JasperServer。
How in the world do I go about updating to the new version of JasperServer? Their site has no real documentation on how to accomplish this.
I have downloaded the JasperServer archive (Windows, btw), but what is next?
The reason for doing this is that the new version of iReport has some sort of file compatibly issue with it's own new jrxml file, and the current fix is updating JasperServer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
js-export
和js-import
命令。过去,我执行了以下操作:
js-import
加载之前导出的报告。js-export
andjs-import
commands.In the past, I did the following:
js-export
to save a copy of the reports.js-import
to load the previously exported reports.他们没有说明如何做到这一点的原因是 JasperReports 不是最终用户自行升级的独立应用程序 - 它是一个用于报告功能的库。如果您自己没有构建使用 JasperReports 的应用程序,那么您实际上没有任何理由升级到 4.0.2。
如果您自己构建了应用程序,那么您只需将旧 jasperreports 中的 jar 替换为新的 jar,然后进行测试以确保没有对 API 进行任何重大更改。 (变更日志似乎没有表明有任何版本,但您从未表明要从哪个版本升级,所以也许有一些)
如果您使用诸如 Maven 之类的东西来构建您正在使用的任何内容,您可以更新依赖信息中的版本并运行新的构建,在所有现有单元测试通过后,您可以使用新版本的 jasperreports 运行您的应用程序,并确保它仍然正常工作。
The reason they don't say how to do it is because JasperReports isn't a standalone app that end users upgrade themselves - it's a library used for reporting features. If you didn't build the application that uses JasperReports yourself you don't really have any reason to upgrade to 4.0.2.
If you did build the application yourself, then you just need to swap the jars from the old jasperreports out with the new ones and then test to make sure there weren't any breaking changes made to the API. (The changelog doesn't seem to indicate there were any, but you don't ever indicate what version you are upgrading from so perhaps there are some)
If you are using something like maven to build whatever you are using, you can update the version in the dependency information and run a new build and after all your existing unit tests pass you can run your app with the new version of jasperreports and make sure it is all still working.