Package org.savantbuild.dep.workflow
Class FetchWorkflow
java.lang.Object
org.savantbuild.dep.workflow.FetchWorkflow
This class is the workflow that is used when attempting to fetch artifacts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchItem(ResolvableItem item, PublishWorkflow publishWorkflow) This loops over all the processes until the item is found or not.
-
Field Details
-
processes
-
-
Constructor Details
-
FetchWorkflow
-
-
Method Details
-
fetchItem
public FetchResult fetchItem(ResolvableItem 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:
item- The item being fetched. This item name should include the necessary information to locate the item.publishWorkflow- The PublishWorkflow that is used to store the item if it can be found.- Returns:
- A FetchResult that contains the item file and source, 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.
-