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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.