diff options
author | Amadornes <amadornes@gmail.com> | 2018-08-19 00:17:50 +0200 |
---|---|---|
committer | Amadornes <amadornes@gmail.com> | 2018-08-19 00:17:50 +0200 |
commit | 5176abfaebbefc33f4c4d242b8b02988cfaefc2f (patch) | |
tree | cd8a649f71b94c4d50e47bb64f8da6d00a47ce6f | |
parent | 9109a6fe1b4de3f758be0a5bacf8258313d84ecc (diff) | |
download | Artifactural-5176abfaebbefc33f4c4d242b8b02988cfaefc2f.tar.gz Artifactural-5176abfaebbefc33f4c4d242b8b02988cfaefc2f.tar.bz2 Artifactural-5176abfaebbefc33f4c4d242b8b02988cfaefc2f.zip |
Added a default path expander for artifact caches
-rw-r--r-- | src/shared/java/com/amadornes/artifactural/base/cache/LocatedArtifactCache.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/java/com/amadornes/artifactural/base/cache/LocatedArtifactCache.java b/src/shared/java/com/amadornes/artifactural/base/cache/LocatedArtifactCache.java index 2afbff8..198f240 100644 --- a/src/shared/java/com/amadornes/artifactural/base/cache/LocatedArtifactCache.java +++ b/src/shared/java/com/amadornes/artifactural/base/cache/LocatedArtifactCache.java @@ -28,4 +28,8 @@ public class LocatedArtifactCache extends ArtifactCacheBase { return doStore(cachePath, artifact); } + public static File expand(File path) { + return new File(path, "${GROUP}/${NAME}/${META_HASH}/${NAME}-${VERSION}-${CLASSIFIER}-${SPECIFIER}.${EXTENSION}"); + } + } |