You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2020/05/05 14:13:44 UTC
[sling-org-apache-sling-jcr-repoinit] branch master updated:
SLING-9419 - Use portable conversion of File to URL
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-repoinit.git
The following commit(s) were added to refs/heads/master by this push:
new 4148b73 SLING-9419 - Use portable conversion of File to URL
4148b73 is described below
commit 4148b73a21ec34a22ef812bb3aaf2fa5724d50ac
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue May 5 16:13:22 2020 +0200
SLING-9419 - Use portable conversion of File to URL
---
.../java/org/apache/sling/jcr/repoinit/RepositoryInitializerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/sling/jcr/repoinit/RepositoryInitializerTest.java b/src/test/java/org/apache/sling/jcr/repoinit/RepositoryInitializerTest.java
index 55b5d26..78a5a88 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/RepositoryInitializerTest.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/RepositoryInitializerTest.java
@@ -168,6 +168,6 @@ public class RepositoryInitializerTest {
w.write(repoInitText);
w.flush();
w.close();
- return "file://" + tmpFile.getAbsolutePath();
+ return tmpFile.toURI().toURL().toString();
}
}
\ No newline at end of file