public class ClassPathHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addElementToTargetProjectClassPath(String element)
Add classpath entry to the classpath of the target project
|
void |
changeTargetClassPath(String[] elements)
Replace current CP for target project with the given
elements |
void |
changeTargetCPtoTheSameAsEvoSuite()
This is meant only for running the EvoSuite test cases, whose CUTs will be in the
classpath of EvoSuite itself
|
String[] |
getClassPathElementsForTargetProject()
Get the project classpath as an array of elements
|
String |
getEvoSuiteClassPath() |
static ClassPathHandler |
getInstance() |
String |
getTargetProjectClasspath()
Return the classpath of the target project.
|
static void |
resetSingleton() |
void |
setEvoSuiteClassPath(String[] elements)
Replace current CP of EvoSuite with the given
elements |
static String |
writeClasspathToFile(String classpath) |
public static ClassPathHandler getInstance()
public static void resetSingleton()
public String getEvoSuiteClassPath()
public void setEvoSuiteClassPath(String[] elements) throws IllegalArgumentException
elementselements - IllegalArgumentException - if values in elements are not valid classpath entriespublic void changeTargetClassPath(String[] elements) throws IllegalArgumentException
elementselements - IllegalArgumentException - if values in elements are not valid classpath entriespublic String getTargetProjectClasspath()
If no classpath has been set so far, the one from the property file will be used, if it exists.
public void addElementToTargetProjectClassPath(String element) throws IllegalArgumentException
element - IllegalArgumentExceptionpublic String[] getClassPathElementsForTargetProject()
public void changeTargetCPtoTheSameAsEvoSuite()
Copyright © 2010–2017 EvoSuite. All rights reserved.