summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+ }
}