From f4c1c76d9414c6268afc627ea44a39b9bb21e4ea Mon Sep 17 00:00:00 2001 From: spbolton Date: Mon, 3 Jun 2024 11:05:43 +0100 Subject: [PATCH] add windows options --- .../container/tomcat9/bin/setenv.bat | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/dotCMS/src/main/resources/container/tomcat9/bin/setenv.bat b/dotCMS/src/main/resources/container/tomcat9/bin/setenv.bat index 06cbafba8d50..b134de4270e0 100644 --- a/dotCMS/src/main/resources/container/tomcat9/bin/setenv.bat +++ b/dotCMS/src/main/resources/container/tomcat9/bin/setenv.bat @@ -1,9 +1,29 @@ -set "CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF8" -set "CATALINA_OPTS=%CATALINA_OPTS% --illegal-access=deny" -set "CATALINA_OPTS=%CATALINA_OPTS% --add-opens=java.base/java.lang=ALL-UNNAMED" -set "CATALINA_OPTS=%CATALINA_OPTS% --add-opens=java.base/java.io=ALL-UNNAMED" -set "CATALINA_OPTS=%CATALINA_OPTS% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" -set "CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl" -set "CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl" -set "CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl" -set "CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource" +@echo off + +set CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF8 +set CATALINA_OPTS=%CATALINA_OPTS% --illegal-access=deny +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.lang=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.io=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.lang.ref=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.lang.reflect=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.net=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.nio=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.nio.charset=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.time=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.time.zone=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.util=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.util.concurrent=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.util.concurrent.locks=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/java.util.regex=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/javax.crypto.spec=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.management/javax.management=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/sun.nio.cs=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/sun.util.calendar=ALL-UNNAMED +set CATALINA_OPTS=%CATALINA_OPTS% --add-opens java.base/sun.util.locale=ALL-UNNAMED + +set CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl +set CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl +set CATALINA_OPTS=%CATALINA_OPTS% -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl +set CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource \ No newline at end of file