Skip to content

Commit

Permalink
[ANT] Remove obsolete comments and update ant.launching/remote.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Dec 17, 2024
1 parent a8960ab commit 4bb869b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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$
Expand Down Expand Up @@ -708,8 +708,6 @@ private void run(List<String> 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) {
Expand Down
Binary file modified ant/org.eclipse.ant.launching/lib/remote.jar
Binary file not shown.

0 comments on commit 4bb869b

Please sign in to comment.