You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2009/05/12 09:09:30 UTC

svn commit: r773804 - /incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java

Author: fmeschbe
Date: Tue May 12 07:09:30 2009
New Revision: 773804

URL: http://svn.apache.org/viewvc?rev=773804&view=rev
Log:
SLING-963 Apply patch by Stefan Seifert (thanks)

Modified:
    incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java

Modified: incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java?rev=773804&r1=773803&r2=773804&view=diff
==============================================================================
--- incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java (original)
+++ incubator/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java Tue May 12 07:09:30 2009
@@ -352,7 +352,10 @@
 
         final Entry[] entries = header.getEntries();
         for(final Entry entry : entries) {
-            final String path = entry.getValue();
+            String path = entry.getValue();
+            if ( path != null && !path.endsWith("/") ) {
+                path += "/";
+            }
             // check if we should ignore this
             final String ignoreValue = entry.getDirectiveValue("maven:mount");
             if ( ignoreValue != null && ignoreValue.equalsIgnoreCase("false") ) {