use of com.teamscale.jacoco.agent.upload.artifactory.ArtifactoryUploader in project teamscale-jacoco-agent by cqse.
the class AgentOptions method createDelayedArtifactoryUploader.
private IUploader createDelayedArtifactoryUploader(Instrumentation instrumentation) {
DelayedUploader<ArtifactoryConfig.CommitInfo> uploader = new DelayedUploader<>(commitInfo -> {
artifactoryConfig.commitInfo = commitInfo;
return new ArtifactoryUploader(artifactoryConfig, additionalMetaDataFiles);
}, outputDirectory);
GitPropertiesLocator<ArtifactoryConfig.CommitInfo> locator = new GitPropertiesLocator<>(uploader, (file, isJarFile) -> ArtifactoryConfig.parseGitProperties(file, artifactoryConfig.gitPropertiesCommitTimeFormat));
instrumentation.addTransformer(new GitPropertiesLocatingTransformer(locator, getLocationIncludeFilter()));
return uploader;
}
Aggregations