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) clone()
createClassLoader
(boolean childDelegation, boolean enableAssertions, String roleName) static Classpath
boolean
Deprecated.this should be package private method which returns List of Files.getCompactLogMessage
(String descriptor) getLogMessage
(String descriptor) int
hashCode()
iterator()
static Classpath
void
writeToSystemProperty
(String propertyName) Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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 paths
withfile
protocol in URL. - Throws:
MalformedURLException
- ifURL
could 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
-
clone
-