Modifier and Type | Field and Description |
---|---|
java.lang.String |
dir |
org.savantbuild.output.Output |
output |
Constructor and Description |
---|
CacheProcess(org.savantbuild.output.Output output,
java.lang.String dir) |
Modifier and Type | Method and Description |
---|---|
void |
deleteIntegrationBuilds(Artifact artifact)
Deletes the integration builds from the cache.
|
java.nio.file.Path |
fetch(Artifact artifact,
java.lang.String item,
PublishWorkflow publishWorkflow)
Checks the cache directory for the item.
|
java.nio.file.Path |
publish(Artifact artifact,
java.lang.String item,
java.nio.file.Path artifactFile)
Publishes the given artifact item into the cache.
|
public final java.lang.String dir
public final org.savantbuild.output.Output output
public CacheProcess(org.savantbuild.output.Output output, java.lang.String dir)
public void deleteIntegrationBuilds(Artifact artifact) throws ProcessFailureException
deleteIntegrationBuilds
in interface Process
artifact
- The artifact. This artifacts version is the next integration build version.ProcessFailureException
- If the integration builds could not be deleted.public java.nio.file.Path fetch(Artifact artifact, java.lang.String item, PublishWorkflow publishWorkflow) throws NegativeCacheException
fetch
in interface Process
artifact
- The artifact that the item is associated with.item
- The name of the item being fetched.publishWorkflow
- The PublishWorkflow that is used to store the item if it can be found.NegativeCacheException
- If there is a negative cache record of the file, meaning it doesn't exist anywhere
in the world.public java.nio.file.Path publish(Artifact artifact, java.lang.String item, java.nio.file.Path artifactFile) throws ProcessFailureException
publish
in interface Process
artifact
- The artifact that the item might be associated with.item
- The name of the item to publish.artifactFile
- The path to the artifact.ProcessFailureException
- If the publish fails.