Class SVNProcess
java.lang.Object
org.savantbuild.dep.workflow.process.SVNProcess
- All Implemented Interfaces:
Process
This is an implementation of the Process that uses the SVNKit SubVersion library to fetch and publish artifacts
from/to a SubVersion repository using SubVersion export and import commands.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSVNProcess(org.savantbuild.output.Output output, String repository, String username, String password) -
Method Summary
Modifier and TypeMethodDescriptionfetch(ResolvableItem item, PublishWorkflow publishWorkflow) Fetches the artifact from the SubVersion repository by performing an export to a temporary file and checking the MD5 sum if it exists.publish(FetchResult fetchResult) Publishes the given artifact item into the SubVersion repository.toString()
-
Field Details
-
output
public final org.savantbuild.output.Output output -
password
-
repository
-
username
-
-
Constructor Details
-
SVNProcess
-
-
Method Details
-
fetch
public FetchResult fetch(ResolvableItem item, PublishWorkflow publishWorkflow) throws ProcessFailureException Fetches the artifact from the SubVersion repository by performing an export to a temporary file and checking the MD5 sum if it exists.- Specified by:
fetchin interfaceProcess- Parameters:
item- The item to fetch.publishWorkflow- The publish workflow used to publish the artifact after it has been successfully fetched.- Returns:
- The FetchResult or null if it doesn't exist.
- Throws:
ProcessFailureException- If the SVN fetch failed.
-
publish
Publishes the given artifact item into the SubVersion repository.- Specified by:
publishin interfaceProcess- Parameters:
fetchResult- The fetch result containing the item and file.- Returns:
- Always null.
- Throws:
ProcessFailureException- If the publish fails.
-
toString
-