sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1786922 - /sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java
Date Tue, 14 Mar 2017 16:39:35 GMT
Author: desruisseaux
Date: Tue Mar 14 16:39:35 2017
New Revision: 1786922

URL: http://svn.apache.org/viewvc?rev=1786922&view=rev
Log:
When converting SIS_DATA to a database name on Windows, name separator ("\") needs to be replaced
by '/'.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java?rev=1786922&r1=1786921&r2=1786922&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/Initializer.java
[UTF-8] Tue Mar 14 16:39:35 2017
@@ -273,7 +273,7 @@ public abstract class Initializer {
                  */
                 path   = path.normalize();
                 create = !Files.exists(path);
-                source = forJavaDB(path.toString());
+                source = forJavaDB(path.toString().replace(path.getFileSystem().getSeparator(),
"/"));
             } else if (home != null) {
                 final Path path = Paths.get(home);
                 create = !Files.exists(path.resolve(DATABASE)) && Files.isDirectory(path);



Mime
View raw message