com.teamscale.jacoco.agent.util.DebugLogDirectoryPropertyDefiner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-jacoco-agent Show documentation
Show all versions of teamscale-jacoco-agent Show documentation
JVM profiler that simplifies various aspects around recording and uploading test coverage
package com.teamscale.jacoco.agent.util;
import java.nio.file.Path;
/** Defines a property that contains the path to which log files should be written. */
public class DebugLogDirectoryPropertyDefiner extends LogDirectoryPropertyDefiner {
/** File path for debug logging. */
/* package */ static Path filePath = null;
@Override
public String getPropertyValue() {
if (filePath == null) {
return super.getPropertyValue();
}
return filePath.resolve("logs").toAbsolutePath().toString();
}
}