Package com.lingocoder.file
Class ArtifactCacheLocator
- java.lang.Object
-
- com.lingocoder.file.ArtifactCacheLocator
-
public class ArtifactCacheLocator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Optional<java.net.URI>
MAVEN_LOCAL
-
Constructor Summary
Constructors Constructor Description ArtifactCacheLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.net.URI>
locateGradleJarsCache()
java.util.Optional<java.net.URI>
locateGradleModulesCache()
java.util.Optional<java.net.URI>
locateMavenLocal()
Looks for a local Maven repository in one of two standard locations on the file system: The default local Maven repository location: $HOME/.m2/repository/ A path referenced by an $M2_REPO_ENV environment variable
-
-
-
Method Detail
-
locateMavenLocal
public java.util.Optional<java.net.URI> locateMavenLocal()
Looks for a local Maven repository in one of two standard locations on the file system:- The default local Maven repository location: $HOME/.m2/repository/
- A path referenced by an $M2_REPO_ENV environment variable
- Returns:
- Either the location on the file system of a local Maven repository, or
Optional.empty()
if none was found.
-
locateGradleJarsCache
public java.util.Optional<java.net.URI> locateGradleJarsCache()
-
locateGradleModulesCache
public java.util.Optional<java.net.URI> locateGradleModulesCache()
-
-