You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gn...@apache.org on 2010/03/25 09:20:45 UTC

svn commit: r927299 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java

Author: gnodet
Date: Thu Mar 25 08:20:44 2010
New Revision: 927299

URL: http://svn.apache.org/viewvc?rev=927299&view=rev
Log:
[bundleplugin] minor improvements to the index goal

Modified:
    felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java?rev=927299&r1=927298&r2=927299&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java (original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrIndex.java Thu Mar 25 08:20:44 2010
@@ -109,7 +109,7 @@ public final class ObrIndex extends Abst
                 }
                 catch (Exception e)
                 {
-                    log.warn("Error processing bundle: " + file, e);
+                    log.warn("Error processing bundle: " + file + " " + e.getMessage());
                 }
             }
             Writer writer = new FileWriter( new File(repositoryXml) );
@@ -178,7 +178,7 @@ public final class ObrIndex extends Abst
                 finalUri = sb.toString();
             }
         }
-        else
+        else if (urlTemplate != null)
         {
             String dir = path.getParentFile().toURI().toURL().toString();
             if (dir.endsWith("/"))
@@ -199,9 +199,8 @@ public final class ObrIndex extends Abst
     private final FileFilter filter = new FileFilter() {
 
         public boolean accept(File pathname) {
-            return pathname.getName().endsWith(".jar");
+            return pathname.getName().endsWith("ar");
         }
-
     };