Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Requirement: Write/update a file inside an osgi module application
Requirement - Write/update a file inside osgi module application("META-INF/resources/js/json/file")
In 6.2 we were able to do this easily inside the portlet. However in Liferay 7.2 I don't see a way to fulfill this requirement because the application is now a java archive.
Does anyone know of a way that this can be accomplished?
Any help with this issue would be truly appreciated!
Please see https://xyproblem.info/ and let us know what you're actually planning to do.
The modules are typically closed, and implement quite a lot of interfaces that you can use to customize their behavior. In many cases, invasive operations like in 6.x are no longer necessary. There might be a few cases where they are still necessary, but it should be the last resort, not the first choice.
7.2 is extended in a totally different way than 6.2, and you should embrace the new way as much as possible, rather than trying to bring the same techniques forward just because you used them in the past.
Powered by Liferay™