jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r1851424 - /jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java
Date Wed, 16 Jan 2019 09:44:37 GMT
Author: tripod
Date: Wed Jan 16 09:44:37 2019
New Revision: 1851424

URL: http://svn.apache.org/viewvc?rev=1851424&view=rev
Log:
JCRVLT-329 - fixing handling of absolute homePaths

Modified:
    jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java

Modified: jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java?rev=1851424&r1=1851423&r2=1851424&view=diff
==============================================================================
--- jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java
(original)
+++ jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSPackageRegistry.java
Wed Jan 16 09:44:37 2019
@@ -149,7 +149,10 @@ public class FSPackageRegistry extends A
         if (repoHome == null) {
             this.homeDir = context.getDataFile(config.homePath());
         } else {
-            this.homeDir = new File(repoHome + "/" + config.homePath());
+            this.homeDir = new File(config.homePath());
+            if (!this.homeDir.isAbsolute()) {
+                this.homeDir = new File(repoHome + "/" + config.homePath());
+            }
             if (!homeDir.exists()) {
                 homeDir.mkdirs();
             }



Mime
View raw message