public class JkArtifactLocator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static JkArtifactLocator |
VOID
Null-Case instance for
JkArtifactLocator |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getArtifactPath(JkArtifactId artifactId)
Returns file system path where is supposed to be produced the specified artifact file id.
|
java.nio.file.Path |
getArtifactPath(java.lang.String qualifier,
java.lang.String extension)
Returns the path where the specified artifact file is supposed to be produced.
|
java.lang.String |
getMainArtifactExt()
Returns the extension used by the main artifact.
|
JkArtifactId |
getMainArtifactId()
Returns the main artifact file id for this producer.
|
java.nio.file.Path |
getMainArtifactPath()
Returns the main artifact path.
|
static JkArtifactLocator |
of(java.nio.file.Path outputDir,
java.lang.String artifactBaseName)
Creates a new JkArtifactLocator with the provided output directory and artifact base name.
|
static JkArtifactLocator |
of(java.util.function.Supplier<java.nio.file.Path> outputDirSupplier,
java.util.function.Supplier<java.lang.String> baseNameSupplier)
Creates a new JkArtifactLocator with the provided output directory supplier and base name supplier.
|
java.lang.String |
toString() |
public static final JkArtifactLocator VOID
JkArtifactLocator
public static JkArtifactLocator of(java.util.function.Supplier<java.nio.file.Path> outputDirSupplier, java.util.function.Supplier<java.lang.String> baseNameSupplier)
outputDirSupplier
- A supplier that provides the output directory path.baseNameSupplier
- A supplier that provides the base name.public static JkArtifactLocator of(java.nio.file.Path outputDir, java.lang.String artifactBaseName)
outputDir
- The output directory path.artifactBaseName
- The base name of the artifact.public java.nio.file.Path getArtifactPath(JkArtifactId artifactId)
public java.nio.file.Path getArtifactPath(java.lang.String qualifier, java.lang.String extension)
public JkArtifactId getMainArtifactId()
public java.lang.String getMainArtifactExt()
public java.nio.file.Path getMainArtifactPath()
public java.lang.String toString()
toString
in class java.lang.Object