Package org.apache.ivy.plugins.lock
Class NoLockStrategy
java.lang.Object
org.apache.ivy.plugins.lock.AbstractLockStrategy
org.apache.ivy.plugins.lock.NoLockStrategy
- All Implemented Interfaces:
LockStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
lockArtifact
(Artifact artifact, File artifactFileToDownload) Performs a lock before downloading the givenArtifact
to the given file.final void
unlockArtifact
(Artifact artifact, File artifactFileToDownload) Release the lock acquired for an artifact download.Methods inherited from class org.apache.ivy.plugins.lock.AbstractLockStrategy
getName, isDebugLocking, setName, toString
-
Constructor Details
-
NoLockStrategy
public NoLockStrategy()
-
-
Method Details
-
lockArtifact
Description copied from interface:LockStrategy
Performs a lock before downloading the givenArtifact
to the given file.- Parameters:
artifact
- the artifact about to be downloadedartifactFileToDownload
- the file where the artifact will be downloaded- Returns:
- true if the artifact is locked, false otherwise
-
unlockArtifact
Description copied from interface:LockStrategy
Release the lock acquired for an artifact download.- Parameters:
artifact
- the artifact for which the lock was acquiredartifactFileToDownload
- the file where the artifact is supposed to have been downloaded
-