db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r506160 - /db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java
Date Sun, 11 Feb 2007 22:50:54 GMT
Author: mamta
Date: Sun Feb 11 14:50:53 2007
New Revision: 506160

URL: http://svn.apache.org/viewvc?view=rev&rev=506160
Log:
DERBY-811 remove the hard coded "/" and replace them with portable File.separator. This change
is for client/org/apache/derby/jdbc/ClientBaseDataSource.java

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java?view=diff&rev=506160&r1=506159&r2=506160
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/jdbc/ClientBaseDataSource.java Sun Feb
11 14:50:53 2007
@@ -23,6 +23,7 @@
 
 import java.io.Serializable;
 import java.io.PrintWriter;
+import java.io.File;
 import java.security.AccessController;
 import java.util.Properties;
 import java.util.StringTokenizer;
@@ -584,9 +585,9 @@
             if (traceDirectory != null) {
                 String fileName;
                 if (traceFile == null) {
-                    fileName = traceDirectory + "/" + logWriterInUseSuffix + "_" + traceFileSuffixIndex;
+                    fileName = traceDirectory + File.separator + logWriterInUseSuffix + "_"
+ traceFileSuffixIndex;
                 } else {
-                    fileName = traceDirectory + "/" + traceFile + logWriterInUseSuffix +
"_" + traceFileSuffixIndex;
+                    fileName = traceDirectory + File.separator + traceFile + logWriterInUseSuffix
+ "_" + traceFileSuffixIndex;
                 }
                 return LogWriter.getPrintWriter(fileName, true); // no file append and not
enable caching.
             } else if (traceFile != null) {



Mime
View raw message