Class LockFileIO
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.io.LockFileIO
Utility class for lock file I/O.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.commonjava.atlas.maven.ident.ref.ProjectVersionRef>allProjectVersionRefsFromLockfiles(File locksRootPath) Returns a set containing all project version refs from lock files in the given path.getLockFiles(File locksRoot) static Set<org.commonjava.atlas.maven.ident.ref.ProjectVersionRef>readProjectVersionRefLocksOfFile(File lockfile) static voidupdateLockfiles(org.gradle.api.logging.Logger logger, File directory, Map<String, org.commonjava.atlas.maven.ident.ref.ProjectVersionRef> alignedDependencies)
-
Method Details
-
allProjectVersionRefsFromLockfiles
public static Set<org.commonjava.atlas.maven.ident.ref.ProjectVersionRef> allProjectVersionRefsFromLockfiles(File locksRootPath) throws 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:
IOException- if an error occurs
-
readProjectVersionRefLocksOfFile
-
getLockFiles
- Throws:
IOException
-
updateLockfiles
-