Optionally add paths to the common loader.

This commit is contained in:
Andrea Dell'Amico 2021-04-13 15:30:25 +02:00
parent 94cdecc62a
commit 7f2f3118e9
3 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ A role that installs multiple instances of tomcat, using the binaries from the d
Role Variables
--------------
The most important variables are listed below:
The most important variables are listed below. See the **defaults/main.yml** file for a complete reference:
``` yaml
tomcat_m_instances:

View File

@ -50,6 +50,10 @@ tomcat_m_java_opts_permgen: "-XX:MaxPermSize={{ tomcat_m_permgen_size }}"
tomcat_m_additional_java_8_opts: "-XX:+CrashOnOutOfMemoryError"
tomcat_m_java_opts: ""
tomcat_m_java_gc_opts: "-XX:+UseConcMarkSweepGC"
tomcat_m_catalina_classloader_paths: []
# - lib/mylibdir
# - lib/mylibdir/*.jar
# Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
# response time). If you use that option and you run Tomcat on a machine with
# exactly one CPU chip that contains one or two cores, you should also add

View File

@ -44,7 +44,7 @@ package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache
# "foo/*.jar": Add all the JARs of the specified folder as class
# repositories
# "foo/bar.jar": Add bar.jar as a class repository
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/common/classes,${catalina.base}/common/*.jar
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/common/classes,${catalina.base}/common/*.jar{% for target in tomcat_m_catalina_classloader_paths %},${catalina.base}/{{ target }}{% endfor %}
#
# List of comma-separated paths defining the contents of the "server"