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, wait
makeAllArtifacts, makeAllMissingArtifacts, makeArtifacts, makeArtifacts, makeMainArtifact, makeMissingArtifacts, makeMissingArtifacts
getMainArtifactId, getMainArtifactPath, getMissingFiles
public final T __
public static <T> JkSuppliedFileArtifactProducer<T> ofParent(T __)
public static JkSuppliedFileArtifactProducer<java.lang.Void> of()
public void makeArtifact(JkArtifactId artifactId)
JkArtifactProducer
makeArtifact
in interface JkArtifactProducer
public java.nio.file.Path getArtifactPath(JkArtifactId artifactId)
JkArtifactLocator
getArtifactPath
in interface JkArtifactLocator
public java.util.List<JkArtifactId> getArtifactIds()
JkArtifactLocator
getArtifactIds
in interface JkArtifactLocator
public 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()
JkArtifactLocator
getMainArtifactExt
in interface JkArtifactLocator
public JkSuppliedFileArtifactProducer<T> setMainArtifactExt(java.lang.String mainArtifactExt)