Package org.apache.maven.surefire.booter
Class Classpath
java.lang.Object
org.apache.maven.surefire.booter.Classpath
An ordered list of classpath elements with set behaviour
A Classpath is immutable and thread safe.
Immutable and thread safe
- Author:
- Kristian Rosenvold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClassPathElementUrl(String path) createClassLoader(boolean childDelegation, boolean enableAssertions, String roleName) static ClasspathbooleanDeprecated.this should be package private method which returns List of Files.getCompactLogMessage(String descriptor) getLogMessage(String descriptor) inthashCode()iterator()static ClasspathvoidwriteToSystemProperty(String propertyName) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Classpath
-
Classpath
-
-
Method Details
-
join
-
emptyClasspath
-
addClassPathElementUrl
-
getClassPath
-
getAsUrlList
Deprecated.this should be package private method which returns List of Files. It will be removed in the next major version.- Returns:
- list of
jar files pathswithfileprotocol in URL. - Throws:
MalformedURLException- ifURLcould not be created upon given class-path element(s)
-
writeToSystemProperty
-
equals
-
createClassLoader
public ClassLoader createClassLoader(boolean childDelegation, boolean enableAssertions, @Nonnull String roleName) throws SurefireExecutionException - Throws:
SurefireExecutionException
-
hashCode
public int hashCode() -
getLogMessage
-
getCompactLogMessage
-
iterator
-