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.io.File locksRootPath)
      Returns a set containing all project version refs from lock files in the given path.
      static java.util.List<java.io.File> getLockFiles​(java.io.File locksRoot)  
      static java.util.Set<org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> readProjectVersionRefLocksOfFile​(java.io.File lockfile)  
      static void updateLockfiles​(org.gradle.api.logging.Logger logger, java.io.File directory, java.util.Map<java.lang.String,​org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> alignedDependencies)  
      • 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.io.File locksRootPath)
                                                                                                                        throws java.io.IOException
        Returns a set containing all project version refs from lock files in the given path. This is not recursive.
        Parameters:
        locksRootPath - the path to the root for the lock files
        Returns:
        the set of all project version refs
        Throws:
        java.io.IOException - if an error occurs
      • readProjectVersionRefLocksOfFile

        public static java.util.Set<org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> readProjectVersionRefLocksOfFile​(java.io.File lockfile)
      • getLockFiles

        public static java.util.List<java.io.File> getLockFiles​(java.io.File locksRoot)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • updateLockfiles

        public static void updateLockfiles​(org.gradle.api.logging.Logger logger,
                                           java.io.File directory,
                                           java.util.Map<java.lang.String,​org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> alignedDependencies)