From 5176abfaebbefc33f4c4d242b8b02988cfaefc2f Mon Sep 17 00:00:00 2001 From: Amadornes Date: Sun, 19 Aug 2018 00:17:50 +0200 Subject: Added a default path expander for artifact caches --- .../com/amadornes/artifactural/base/cache/LocatedArtifactCache.java | 4 ++++ 1 file changed, 4 insertions(+) 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}"); + } + } -- cgit