fetchItem
public java.nio.file.Path fetchItem(Artifact artifact,
java.lang.String item,
PublishWorkflow publishWorkflow)
throws ProcessFailureException,
org.savantbuild.security.MD5Exception
This loops over all the processes until the item is found or not. Each process must call to the PublishWorkflow if
it finds the artifact and the publish workflow must be able to return a File that can be used for future
reference.
- Parameters:
artifact
- The artifact if needed.
item
- The name of the item being fetched. This item name should NOT include the path information.
This will be handled by the processes so that flattened namespacing and other types of
handling can be performed. This item should only be the name of the item being fetched. For
example, if the artifact MD5 file is being fetched this would look like this:
common-collections-2.1.jar.md5.
publishWorkflow
- The PublishWorkflow that is used to store the item if it can be found.
- Returns:
- A file that contains the item contents or null if the item was not found.
- Throws:
ProcessFailureException
- If any of the processes failed while attempting to fetch the artifact.
org.savantbuild.security.MD5Exception
- If the item's MD5 file did not match the item.