summaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/maven
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/apache/maven')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarLayout20.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarLayout20.java b/src/main/java/org/apache/maven/plugin/nar/NarLayout20.java
index 304278f..1e1d15c 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarLayout20.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarLayout20.java
@@ -196,4 +196,11 @@ public class NarLayout20
}
}
+ public File getNarUnpackDirectory(File baseUnpackDirectory, File narFile)
+ {
+ File dir = new File(
+ baseUnpackDirectory,
+ FileUtils.basename( narFile.getPath(), "." + NarConstants.NAR_EXTENSION ));
+ return dir;
+ }
}