Class LockFileIO
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.io.LockFileIO
-
public final class LockFileIO extends java.lang.ObjectUtility 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 voidupdateLockfiles(org.gradle.api.logging.Logger logger, java.io.File directory, java.util.Map<java.lang.String,org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> alignedDependencies)
-
-
-
Method Detail
-
allProjectVersionRefsFromLockfiles
public static java.util.Set<org.commonjava.maven.atlas.ident.ref.ProjectVersionRef> allProjectVersionRefsFromLockfiles(java.io.File locksRootPath) throws java.io.IOExceptionReturns 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)
-
-