You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by mi...@apache.org on 2013/06/03 06:27:11 UTC

svn commit: r1488843 - /manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java

Author: minoru
Date: Mon Jun  3 04:27:10 2013
New Revision: 1488843

URL: http://svn.apache.org/r1488843
Log:
Changed the output file path rule.

Modified:
    manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java

Modified: manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java?rev=1488843&r1=1488842&r2=1488843&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java (original)
+++ manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java Mon Jun  3 04:27:10 2013
@@ -498,6 +498,21 @@ public class FileOutputConnector extends
       path.append(uri.getScheme());
     }
 
+    if (uri.getAuthority() != null) {
+      if (!path.toString().endsWith("/")) {
+        path.append("/");
+      }
+      path.append(uri.getAuthority().replaceAll(":", "_"));
+    } else {
+      if (uri.getSchemeSpecificPart() != null) {
+        if (!path.toString().endsWith("/")) {
+          path.append("/");
+        }
+        path.append(uri.getSchemeSpecificPart().replaceAll(":", "_"));
+      }
+    }
+
+    /*
     if (uri.getUserInfo() != null) {
       if (!path.toString().endsWith("/")) {
         path.append("/");
@@ -518,6 +533,7 @@ public class FileOutputConnector extends
       }
       path.append(uri.getPort());
     }
+    */
 
     if (uri.getPath() != null) {
       if (!uri.getPath().startsWith("/")) {