I have the next problem:
I have the following class:
classes/com/example/jira/tab2/jira/tabpanels/tab.java
and I need to call this vm in the following path:
classes/templates/tabpanels/issue-tab-panel.vm
my code:
properties.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
properties.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());
Velocity.init(properties);
Template template = null;
template = Velocity.getTemplate("../../../../../../templates/tabpanels/issue-tab-panel.vm");
the console error:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '../../../../../../templates/tabpanels/issue-tab-panel.vm'
Help me please
thankU.
I think that you have not add the resource issue-tab-panel.vm in yous atlassian-plugin.xml
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.