org.apache.maven.surefire.booter
Class Classpath
java.lang.Object
org.apache.maven.surefire.booter.Classpath
- All Implemented Interfaces:
- Iterable<String>
public class Classpath
- extends Object
- implements Iterable<String>
An ordered list of classpath elements with set behaviour
A Classpath is immutable and thread safe.
Immutable and thread safe
- Author:
- Kristian Rosenvold
Classpath
public Classpath(Classpath other,
String additionalElement)
Classpath
public Classpath(Iterable<String> elements)
join
public static Classpath join(Classpath firstClasspath,
Classpath secondClasspath)
emptyClasspath
public static Classpath emptyClasspath()
addClassPathElementUrl
public Classpath addClassPathElementUrl(String path)
getClassPath
public List<String> getClassPath()
getAsUrlList
public List<URL> getAsUrlList()
throws MalformedURLException
- Throws:
MalformedURLException
writeToSystemProperty
public void writeToSystemProperty(String propertyName)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
createClassLoader
public ClassLoader createClassLoader(ClassLoader parent,
boolean childDelegation,
boolean enableAssertions,
String roleName)
throws SurefireExecutionException
- Throws:
SurefireExecutionException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getLogMessage
public String getLogMessage(String descriptor)
getCompactLogMessage
public String getCompactLogMessage(String descriptor)
iterator
public Iterator<String> iterator()
- Specified by:
iterator
in interface Iterable<String>
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.