Slight bug fix to deal with Windows path separator.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@424261 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/moduleloader/DirectoryContent.java b/org.apache.felix.framework/src/main/java/org/apache/felix/moduleloader/DirectoryContent.java
index dbaa6e4..4404e45 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/moduleloader/DirectoryContent.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/moduleloader/DirectoryContent.java
@@ -171,10 +171,13 @@
                 throw new NoSuchElementException("No more entry paths.");
             }
 
+            // Convert the file separator character to slashes.
+            String abs = m_children[m_counter].getAbsolutePath()
+                .replace(File.separatorChar, '/');
+
             // Remove the leading path of the reference directory, since the
             // entry paths are supposed to be relative to the root.
-// TODO: ML - Under Windows we will have to deal with drive letters, I think.
-            StringBuffer sb = new StringBuffer(m_children[m_counter].getAbsolutePath());
+            StringBuffer sb = new StringBuffer(abs);
             sb.delete(0, m_dir.getAbsolutePath().length() + 1);
             // Add a '/' to the end of directory entries.
             if (m_children[m_counter].isDirectory())