public final class AgentJar
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static void |
extractTo(java.io.File destination) |
Extract the JaCoCo agent JAR and put it into the specified location.
|
static java.io.File |
extractToTempLocation() |
Extract the JaCoCo agent JAR and put it into a temporary location.
|
static java.net.URL |
getResource() |
Returns a URL pointing to the JAR file.
|
static java.io.InputStream |
getResourceAsStream() |
Returns the content of the JAR file as a stream.
|
public static java.net.URL getResource()
public static java.io.InputStream getResourceAsStream()
public static java.io.File extractToTempLocation() throws java.io.IOException
java.io.IOException
- Unable to unpack agent jarpublic static void extractTo(java.io.File destination) throws java.io.IOException
destination
- Location to write JaCoCo Agent Jar to. Must be writeablejava.io.IOException
- Unable to unpack agent jarCopyright © 2018. All rights reserved.