i want to implement a mvc module as jira webwork1 module type, but i dont know how to render a vm template file which in another plugin. anyone can help me. thanks.
currently, when i call render function, velocity tell me can't find the resource file. i known why raise this error, because of not using the right classloader, so classloader can't find the resource in current bundle. but anyone can help me to resolve the question.
You can't really do that. A .vm file requires a "context" which is provided by the code behind it. You can't just take a .vm and render it from elsewhere because the context for it won't be there in your code. You can, of course, create your own context for a .vm file provided elsewhere, but you might as well just copy the .vm into your own plugin as you're already doing all the rest of the work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It can't - it's providing a context and reusing a file. It's not rendering it without a context as you seem to be trying.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The jar plugin is a simple zip archive. Unzip the plugin you want to get vm from and copy vm into your plugin. Then render that according to your needs. Please note that you should provide needed variables to that vm file to render it. Also please note that there might be some license issues that will not allow to do that legally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup, as I said, copy it into your own code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.