]> git.dolda2000.com Git - jsvc.git/commitdiff
Revert "Moved the SCGI storage root default into Environment."
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 00:28:16 +0000 (02:28 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 00:28:16 +0000 (02:28 +0200)
This reverts commit ca735b1ffb58436bbd0ab9855625560c28f21424, since
the code didn't respect context names with that.

src/dolda/jsvc/scgi/DSContext.java
src/dolda/jsvc/scgi/Environment.java

index 350e1c5dd7b1657b65448f539c0d9e11e0371df5..c72688707a6c9bfbf14a15f265210a5c052a711f 100644 (file)
@@ -37,6 +37,10 @@ public class DSContext extends SimpleContext {
     }
     
     private void loadconfig() {
+       if(env.root != null) {
+           File sroot = new File(new File(env.root, "store"), name());
+           sysconfig.put("jsvc.storage", "file:" + sroot.getPath());
+       }
        sysconfig.putAll(env.sysconfig);
     }
     
index b2f85bf5c845dcdb1ea6844572edb49ee8e03004..e91f57a3dbecc3a8d2633867df606de2187ebbb5 100644 (file)
@@ -27,8 +27,6 @@ public class Environment {
     }
     
     private void loadconfig() {
-       File sroot = new File(root, "store");
-       sysconfig.put("jsvc.storage", "file:" + sroot.getPath());
        File conf = new File(root, "jsvc.properties");
        if(conf.exists()) {
            try {