public class ClassPathHacker extends Object
ClassPathHacker class.
| Constructor and Description |
|---|
ClassPathHacker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFile(File f)
addFile
|
static void |
addFile(String s)
addFile
|
static void |
addURL(URL u)
addURL
|
static void |
initializeToolJar()
Locate and add to classpath the tools.jar.
|
public static void initializeToolJar()
throws RuntimeException
If we need to activate JavaAgent (eg to handle environment in generated tests), we need to be sure we can use tools.jar
RuntimeExceptionpublic static void addFile(String s) throws IOException
addFile
s - a String object.IOException - if any.public static void addFile(File f) throws IOException
addFile
f - a File object.IOException - if any.public static void addURL(URL u) throws IOException
addURL
u - a URL object.IOException - if any.Copyright © 2010–2017 EvoSuite. All rights reserved.