public class ClassPathUtil extends Object
| Constructor and Description |
|---|
ClassPathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findCodeBaseInClassPath(Pattern codeBaseNamePattern,
String classPath)
Try to find a codebase matching the given pattern in the given class path
string.
|
static String |
findCodeBaseInClassPath(String codeBaseName,
String classPath)
Try to find a codebase with the given name in the given class path
string.
|
static String[] |
getJavaClassPath() |
public static String findCodeBaseInClassPath(@Nonnull String codeBaseName, String classPath)
codeBaseName - name of a codebase (e.g., "findbugs.jar")classPath - a classpathpublic static String findCodeBaseInClassPath(Pattern codeBaseNamePattern, String classPath)
codeBaseNamePattern - pattern describing a codebase (e.g., compiled from the regex
"findbugs\\.jar$")classPath - a classpathpublic static String[] getJavaClassPath()
Copyright © 2003–2015. All rights reserved.