diff options
author | Volker Schumacher <volker@antenna500.local> | 2010-01-05 23:53:27 +0800 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2010-01-08 00:18:25 +0800 |
commit | 1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8 (patch) | |
tree | 8951cbfc1c42baec95c8aa14bff5844e740219f2 /src/main | |
parent | 04bf49625242b9eabf0f1342050cabff019ae225 (diff) | |
download | maven-nar-plugin-1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8.tar.gz maven-nar-plugin-1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8.tar.bz2 maven-nar-plugin-1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8.tar.xz maven-nar-plugin-1679b9027d47c3b6137dd0ebcdf8a3dbfec122f8.zip |
implemented getUnpackDirectory in NarLayout20.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarLayout20.java | 7 |
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; + } } |