directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1074787 - in /directory/shared/branches/akarasulu/util/src: main/java/org/apache/directory/shared/util/OsgiUtils.java test/java/org/apache/directory/shared/util/OsgiUtilsTest.java
Date Sat, 26 Feb 2011 03:36:25 GMT
Author: akarasulu
Date: Sat Feb 26 03:36:24 2011
New Revision: 1074787

URL: http://svn.apache.org/viewvc?rev=1074787&view=rev
Log:
extra argument to take union of various values for exported packages

Modified:
    directory/shared/branches/akarasulu/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
    directory/shared/branches/akarasulu/util/src/test/java/org/apache/directory/shared/util/OsgiUtilsTest.java

Modified: directory/shared/branches/akarasulu/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java?rev=1074787&r1=1074786&r2=1074787&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
(original)
+++ directory/shared/branches/akarasulu/util/src/main/java/org/apache/directory/shared/util/OsgiUtils.java
Sat Feb 26 03:36:24 2011
@@ -50,9 +50,13 @@ public class OsgiUtils
      *
      * @return All the exported packages of all bundles on the classpath.
      */
-    public static Set<String> getAllBundleExports( FileFilter filter )
+    public static Set<String> getAllBundleExports( FileFilter filter, Set<String>
pkgs )
     {
-        Set<String> pkgs = new HashSet<String>();
+        if ( pkgs == null )
+        {
+            pkgs = new HashSet<String>();
+        }
+        
         Set<File> candidates = getClasspathCandidates( filter );
         
         for ( File candidate : candidates )

Modified: directory/shared/branches/akarasulu/util/src/test/java/org/apache/directory/shared/util/OsgiUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/util/src/test/java/org/apache/directory/shared/util/OsgiUtilsTest.java?rev=1074787&r1=1074786&r2=1074787&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/util/src/test/java/org/apache/directory/shared/util/OsgiUtilsTest.java
(original)
+++ directory/shared/branches/akarasulu/util/src/test/java/org/apache/directory/shared/util/OsgiUtilsTest.java
Sat Feb 26 03:36:24 2011
@@ -153,6 +153,6 @@ public class OsgiUtilsTest
     @Test
     public void testGetAllBundleExports()
     {
-        OsgiUtils.getAllBundleExports( null );
+        OsgiUtils.getAllBundleExports( null, null );
     }
 }



Mime
View raw message