Class LockFileIO


  • public final class LockFileIO
    extends java.lang.Object
    Utility class for lock file I/O.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> allProjectVersionRefsFromLockfiles​(java.nio.file.Path locksRootPath)
      Returns a set containing all project version refs from lock files in the given path.
      static java.nio.file.Path getLocksRootPath​(org.gradle.api.Project project)
      Gets the lock file root path for the given project.
      static void renameAllLockFiles​(java.nio.file.Path locksRootPath)
      Renames all lock files under the given root.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • allProjectVersionRefsFromLockfiles

        public static java.util.Set<org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> allProjectVersionRefsFromLockfiles​(java.nio.file.Path locksRootPath)
        Returns a set containing all project version refs from lock files in the given path.
        Parameters:
        locksRootPath - the path to the root for the lock files
        Returns:
        the set of all project version refs
      • renameAllLockFiles

        public static void renameAllLockFiles​(java.nio.file.Path locksRootPath)
        Renames all lock files under the given root.
        Parameters:
        locksRootPath - the root path for the lock files
      • getLocksRootPath

        public static java.nio.file.Path getLocksRootPath​(org.gradle.api.Project project)
        Gets the lock file root path for the given project.
        Parameters:
        project - the project
        Returns:
        the lock file root path