public class JkSuppliedFileArtifactProducer<T> extends java.lang.Object implements JkArtifactProducer
JkArtifactProducer produces artifacts files at the path
provided by the caller
To add artifacts to produce, caller has to provide the Path where is generated artifact along
the Runnable for generating it.JkArtifactProducer.JkSupplier| Modifier and Type | Method and Description |
|---|---|
java.util.List<JkArtifactId> |
getArtifactIds()
Returns all the artifact ids likely to be produced by this artifact producer.
|
java.nio.file.Path |
getArtifactPath(JkArtifactId artifactId)
Returns file ofSystem path where is supposed to be produced the specified artifact file id.
|
java.lang.String |
getMainArtifactExt()
Returns the extension used by the main artifact.
|
void |
makeArtifact(JkArtifactId artifactId)
Produces the specified artifact file.
|
static JkSuppliedFileArtifactProducer<java.lang.Void> |
of() |
static <T> JkSuppliedFileArtifactProducer<T> |
ofParent(T __) |
JkSuppliedFileArtifactProducer<T> |
putArtifact(JkArtifactId artifactId,
java.nio.file.Path target,
java.lang.Runnable fileMaker) |
JkSuppliedFileArtifactProducer<T> |
putMainArtifact(java.nio.file.Path target,
java.lang.Runnable fileMaker) |
JkSuppliedFileArtifactProducer<T> |
removeArtifact(JkArtifactId artifactId) |
JkSuppliedFileArtifactProducer<T> |
setMainArtifactExt(java.lang.String mainArtifactExt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeAllArtifacts, makeAllMissingArtifacts, makeArtifacts, makeArtifacts, makeMainArtifact, makeMissingArtifacts, makeMissingArtifactsgetMainArtifactId, getMainArtifactPath, getMissingFilespublic final T __
public static <T> JkSuppliedFileArtifactProducer<T> ofParent(T __)
public static JkSuppliedFileArtifactProducer<java.lang.Void> of()
public void makeArtifact(JkArtifactId artifactId)
JkArtifactProducermakeArtifact in interface JkArtifactProducerpublic java.nio.file.Path getArtifactPath(JkArtifactId artifactId)
JkArtifactLocatorgetArtifactPath in interface JkArtifactLocatorpublic java.util.List<JkArtifactId> getArtifactIds()
JkArtifactLocatorgetArtifactIds in interface JkArtifactLocatorpublic JkSuppliedFileArtifactProducer<T> putArtifact(JkArtifactId artifactId, java.nio.file.Path target, java.lang.Runnable fileMaker)
public JkSuppliedFileArtifactProducer<T> putMainArtifact(java.nio.file.Path target, java.lang.Runnable fileMaker)
public JkSuppliedFileArtifactProducer<T> removeArtifact(JkArtifactId artifactId)
public java.lang.String getMainArtifactExt()
JkArtifactLocatorgetMainArtifactExt in interface JkArtifactLocatorpublic JkSuppliedFileArtifactProducer<T> setMainArtifactExt(java.lang.String mainArtifactExt)