commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r374080 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java
Date Wed, 01 Feb 2006 14:59:16 GMT
Author: imario
Date: Wed Feb  1 06:59:11 2006
New Revision: 374080

URL: http://svn.apache.org/viewcvs?rev=374080&view=rev
Log:
add network port to smb url

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java?rev=374080&r1=374079&r2=374080&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/smb/SmbFileName.java
Wed Feb  1 06:59:11 2006
@@ -114,6 +114,11 @@
         sb.append(getScheme());
         sb.append("://");
         sb.append(getHostName());
+        if (getPort() != DEFAULT_PORT)
+        {
+            sb.append(":");
+            sb.append(getPort());
+        }
         sb.append("/");
         sb.append(getShare());
         sb.append(getPathDecoded());



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message