From 1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8 Mon Sep 17 00:00:00 2001 From: Volker Schumacher Date: Tue, 5 Jan 2010 23:53:27 +0800 Subject: implemented getUnpackDirectory in NarLayout20. --- src/main/java/org/apache/maven/plugin/nar/NarLayout20.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; + } } -- cgit v1.2.3