.get(AGENT_ARTIFACT_NAME);
return jacocoAgentArtifact.getFile();
}
private AgentOptions createAgentOptions() {
final AgentOptions agentOptions = new AgentOptions();
final String destPath = destFile.getAbsolutePath();
agentOptions.setDestfile(destPath);
if (append != null) {
agentOptions.setAppend(append.booleanValue());
}
if (includes != null) {
agentOptions.setIncludes(includes);
}
if (excludes != null) {
agentOptions.setExcludes(excludes);
}
if (exclClassLoaders != null) {
agentOptions.setExclClassloader(exclClassLoaders);
}
if (sessionId != null) {
agentOptions.setSessionId(sessionId);
}
if (dumpOnExit != null) {
agentOptions.setDumpOnExit(dumpOnExit.booleanValue());
}
if (output != null) {
agentOptions.setOutput(output);
}
if (address != null) {
agentOptions.setAddress(address);
}
if (port != null) {
agentOptions.setPort(port.intValue());
}
return agentOptions;
}