diff --git a/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalAntRunner.java b/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalAntRunner.java index 9f24bc20c46..ed67b7f94f7 100644 --- a/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalAntRunner.java +++ b/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalAntRunner.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2022 IBM Corporation and others. + * Copyright (c) 2000, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -83,7 +83,7 @@ @SuppressWarnings("removal") // SecurityManager public class InternalAntRunner { - private static final boolean IS_SECURITY_MANAGER_SUPPORTED = isSecurityManagerAllowed(); + public static final boolean IS_SECURITY_MANAGER_SUPPORTED = isSecurityManagerAllowed(); private static boolean isSecurityManagerAllowed() { String sm = System.getProperty("java.security.manager"); //$NON-NLS-1$ @@ -708,8 +708,6 @@ private void run(List argList) { printArguments(getCurrentProject()); } if (IS_SECURITY_MANAGER_SUPPORTED) { - // TODO: call SecurityManagerUtil.isSecurityManagerAllowed() once it's more fine-grained, - // i.e. once https://github.com/apache/ant/pull/216 is available. System.setSecurityManager(new AntSecurityManager(originalSM, Thread.currentThread())); } if (targets == null) { diff --git a/ant/org.eclipse.ant.launching/lib/remote.jar b/ant/org.eclipse.ant.launching/lib/remote.jar index 3eba1edc0d5..1e932f8f16a 100644 Binary files a/ant/org.eclipse.ant.launching/lib/remote.jar and b/ant/org.eclipse.ant.launching/lib/remote.jar differ