.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 (getIncludes() != null && !getIncludes().isEmpty()) {
String agentIncludes = StringUtils.join(getIncludes().iterator(),
":");
agentOptions.setIncludes(agentIncludes);
}
if (getExcludes() != null && !getExcludes().isEmpty()) {
String agentExcludes = StringUtils.join(getExcludes().iterator(),
":");
agentOptions.setExcludes(agentExcludes);
}
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;
}