commit | 0491afa7ef941a470e39e2bb6ba6923eef8c2689 | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@apache.org> | Tue Feb 19 05:06:41 2008 +0000 |
committer | Stuart McCulloch <mcculls@apache.org> | Tue Feb 19 05:06:41 2008 +0000 |
tree | 6b2f9e9ab8575e925d11d57572a25eb23d272393 | |
parent | 6e015215e412d122cde066a5c1bf200985200c07 [diff] |
FELIX-491: save bundles with non-null classifier to different location git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@628989 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java index 981fcb5..b3865ae 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java +++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -732,7 +732,13 @@ */ protected String getBundleName( MavenProject currentProject ) { - return currentProject.getBuild().getFinalName() + ".jar"; + String finalName = currentProject.getBuild().getFinalName(); + if ( null != classifier && classifier.trim().length() > 0 ) + { + return finalName + '-' + classifier + ".jar"; + } + + return finalName + ".jar"; }