blob: 9a3fc89bbd5972081ec3af8a075afc5405cf33f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.plugin.mojo;
import org.apache.maven.project.MavenProject;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.jar.JarFile;
/**
* @author bjorncs
*/
class TestBundleUtils {
private TestBundleUtils() {}
static Path outputDirectory(MavenProject project) { return targetDirectory(project).resolve("test-bundle/"); }
static Path manifestFile(MavenProject project) { return outputDirectory(project).resolve(JarFile.MANIFEST_NAME); }
static Path archiveFile(MavenProject project) {
return targetDirectory(project).resolve(project.getBuild().getFinalName() + "-tests.jar");
}
private static Path targetDirectory(MavenProject project) { return Paths.get(project.getBuild().getDirectory()); }
}
|