Package org.apache.axis.utils
Class ClasspathUtils
java.lang.Object
org.apache.axis.utils.ClasspathUtils
Utility class for constructing the classpath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
expandDirs
(String dirPaths) Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.static String
getDefaultClasspath
(MessageContext msgContext) Get the default classpath from various thingies in the message contextstatic boolean
isJar
(InputStream is) Check if this inputstream is a jar/zip
-
Constructor Details
-
ClasspathUtils
public ClasspathUtils()
-
-
Method Details
-
expandDirs
Expand a directory path or list of directory paths (File.pathSeparator delimited) into a list of file paths of all the jar files in those directories.- Parameters:
dirPaths
- The string containing the directory path or list of directory paths.- Returns:
- The file paths of the jar files in the directories. This is an empty string if no files were found, and is terminated by an additional pathSeparator in all other cases.
-
isJar
Check if this inputstream is a jar/zip- Parameters:
is
-- Returns:
- true if inputstream is a jar
-
getDefaultClasspath
Get the default classpath from various thingies in the message context- Parameters:
msgContext
-- Returns:
- default classpath
-