hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahue...@apache.org
Subject svn commit: r514893 - /hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java
Date Mon, 05 Mar 2007 22:31:25 GMT
Author: ahuegen
Date: Mon Mar  5 14:31:25 2007
New Revision: 514893

URL: http://svn.apache.org/viewvc?view=rev&rev=514893
Log:
Load annotation processors extensions defined in manifest

Modified:
    hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java

Modified: hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java?view=diff&rev=514893&r1=514892&r2=514893
==============================================================================
--- hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java
(original)
+++ hivemind/hivemind2/trunk/framework/src/java/org/apache/hivemind/impl/ManifestReader.java
Mon Mar  5 14:31:25 2007
@@ -50,14 +50,16 @@
         {
             Manifest manifest = manifests[i];
             String value = getAttributeValue(manifest, attributeName);
-            results.add(value);
+            if (value != null) {
+                results.add(value);
+            }
         }
         return (String[]) results.toArray(new String[results.size()]);
     }
     
     /**
      * Searches a manifest for a attribute of the given name.
-     * @return  the attribute value
+     * @return  the attribute value or null if the attribute is not defined
      */
     private static String getAttributeValue(Manifest manifest, String attributeName)
     {



Mime
View raw message