Package org.apache.tools.ant.util
Class SecurityManagerUtil
java.lang.Object
org.apache.tools.ant.util.SecurityManagerUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true ifSecurityManager
usage is allowed in current Java runtime. false otherwise.static boolean
warnOnSecurityManagerUsage
(Project project) Returns true ifSecurityManager
usage should only be logged as a warning. false otherwise.
-
Constructor Details
-
SecurityManagerUtil
public SecurityManagerUtil()
-
-
Method Details
-
isSetSecurityManagerAllowed
public static boolean isSetSecurityManagerAllowed()Returns true ifSecurityManager
usage is allowed in current Java runtime. false otherwise.- Returns:
- true if
SecurityManager
usage is allowed in current Java runtime. false otherwise
-
warnOnSecurityManagerUsage
Returns true ifSecurityManager
usage should only be logged as a warning. false otherwise.- Returns:
- true if
SecurityManager
usage should only be logged as a warning. false otherwise
-