Top Fields Constructors Methods
org.apache.tools.ant.util

public final Class SecurityManagerUtil

extends Object
Class Inheritance
Imports
org.apache.tools.ant.MagicNames, .Project

Since
Ant 1.10.14

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if SecurityManager usage is allowed in current Java runtime. false otherwise
isSetSecurityManagerAllowed
()

Returns true if SecurityManager usage is allowed in current Java runtime.

public static boolean

Returns:

true if SecurityManager usage should only be logged as a warning. false otherwise
warnOnSecurityManagerUsage
(final Project project)

Returns true if SecurityManager usage should only be logged as a warning.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isJava18OrHigherback to summary
private static final boolean isJava18OrHigher
sysPropWarnOnSecMgrUsageback to summary
private static final boolean sysPropWarnOnSecMgrUsage

Constructor Detail

SecurityManagerUtilback to summary
public SecurityManagerUtil()

Method Detail

isSetSecurityManagerAllowedback to summary
public static boolean isSetSecurityManagerAllowed()

Returns true if SecurityManager usage is allowed in current Java runtime. false otherwise.

Returns:boolean

true if SecurityManager usage is allowed in current Java runtime. false otherwise

warnOnSecurityManagerUsageback to summary
public static boolean warnOnSecurityManagerUsage(final Project project)

Returns true if SecurityManager usage should only be logged as a warning. false otherwise.

Returns:boolean

true if SecurityManager usage should only be logged as a warning. false otherwise