|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.agent.AgentJar
public final class AgentJar
API to access the agent JAR file as a resource. While the agent is a JAR file it is considered as a plain resource that must be configured for the application under test (target JVM). The agent JAR does not provide any public Java API.
| Method Summary | |
|---|---|
static void |
extractTo(File destination)
Extract the JaCoCo agent JAR and put it into the specified location. |
static File |
extractToTempLocation()
Extract the JaCoCo agent JAR and put it into a temporary location. |
static URL |
getResource()
Returns a URL pointing to the JAR file. |
static InputStream |
getResourceAsStream()
Returns the content of the JAR file as a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static URL getResource()
public static InputStream getResourceAsStream()
public static File extractToTempLocation()
throws IOException
IOException - Unable to unpack agent jar
public static void extractTo(File destination)
throws IOException
destination - Location to write JaCoCo Agent Jar to. Must be writeable
IOException - Unable to unpack agent jar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||