|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.agent.AgentJar
public class AgentJar
API to access the agent JAR file as a resource.
Method Summary | |
---|---|
static void |
extractTo(File destination)
Extract the JaCoCo agent jar from the classpath and put it into the specified location. |
static File |
extractToTempLocation()
Extract the JaCoCo agent jar from the classpath 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 jarpublic 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 |