ref #10072 switch off security manager for DdlCreator
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jul 2022 12:25:20 +0000 (14:25 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jul 2022 12:25:20 +0000 (14:25 +0200)
cdmlib-test/src/main/java/eu/etaxonomy/cdm/test/unitils/DdlCreator.java

index b3eb3f5dd2c00dfc629ce9602e69ae12c8de1549..b96c4347448b38ac96ca9218cb2982c7159d37a8 100644 (file)
@@ -48,6 +48,7 @@ public class DdlCreator {
 
        public static void main(String[] args) {
                try {
+                   System.setSecurityManager(null); //avoids security exception when started by ant (problem is the jmx server registration by log4j2, similar issue is described at https://stackoverflow.com/questions/12195868/java-security-accesscontrolexception-when-using-ant-but-runs-ok-when-invoking-j )
                        new DdlCreator().execute(H2CorrectedDialectTest.class, "h2");
                } catch (Exception e) {
                        e.printStackTrace();