managed the tomcat7 case with more than one plugin

This commit is contained in:
Roberto Cirillo 2019-05-03 16:55:08 +02:00
parent de1845044f
commit 9ac932ffd1
1 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,11 @@
<Context reloadable="true">
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
{% if item.plugin_name is defined %}
virtualClasspath="{{ smartgears_instance_path }}/webapps/{{ item.app_name }}/WEB-INF/lib/plugins/{{ item.plugin_name }}/*.jar"/>
{% else %}
{% for plugin in item.app_plugins %}
virtualClasspath="{{ smartgears_instance_path }}/webapps/{{ item.app_name }}/WEB-INF/lib/plugins/{{ plugin }}/*.jar"/>
{% endfor %}
{% endif %}
</Context>