public class JarDependenciesFinder extends Object
Class-Path property.
Note that:
L:/my/JarFile.jar:
Class-Path: myJar1.jar \
myJar2.jar
The getJarDependencies(java.net.URL, boolean) will return the following URLs with include set to false:
L:/my/myJar1.jarL:/my/myJar2.jar| Modifier and Type | Method and Description |
|---|---|
static URL[] |
getJarDependencies(List<URL> jarFiles,
boolean include)
Return the array of Class-Path dependencies of a list of jar files.
|
static URL[] |
getJarDependencies(URL jarFile,
boolean include)
Return the array of Class-Path dependencies of a jar file.
|
static List<URL> |
getJarDependenciesAsList(List<URL> jarFiles,
boolean include)
Return the list of Class-Path dependencies of a list of jar files.
|
static List<URL> |
getJarDependenciesAsList(URL jarFile,
boolean include)
Return the list of Class-Path dependencies of a jar file.
|
public static URL[] getJarDependencies(List<URL> jarFiles, boolean include)
jarFiles - the list of jar filesinclude - true if the initial jar files must be included in the arraypublic static List<URL> getJarDependenciesAsList(List<URL> jarFiles, boolean include)
jarFiles - the list of jar filesinclude - true if the initial jar files must be included in the arraypublic static URL[] getJarDependencies(URL jarFile, boolean include)
jarFile - the jar fileinclude - true if the initial jar file must be included in the arraypublic static List<URL> getJarDependenciesAsList(URL jarFile, boolean include)
jarFile - the jar fileinclude - true if the initial jar file must be included in the array