public class JarUtils extends Object
Constructor and Description |
---|
JarUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isJar(String path)
Returns true if the path ends with a jarfile extension, ignoring case.
|
static boolean |
isJREJar(File file,
int ancestralScanDepth,
Set<String> knownJREPaths,
Set<String> knownNonJREPaths,
Set<String> knownRtJarPaths,
LogNode log)
Recursively search within ancestral directories of a jarfile to see if rt.jar is present, in order to
determine if the given jarfile is part of the JRE.
|
static String |
leafName(String path)
Returns the leafname of a path.
|
public static boolean isJar(String path)
public static boolean isJREJar(File file, int ancestralScanDepth, Set<String> knownJREPaths, Set<String> knownNonJREPaths, Set<String> knownRtJarPaths, LogNode log)
Copyright © 2017. All rights reserved.