X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fj2ee%2FTomcatContext.java;h=db535505b9ca7f821d332a2ec8bc3c2bad8c24f2;hp=8672d3911712dfbc6467eb587a9c4798442ba10c;hb=67fe85aafa08a3b3081218d698ae166b35d5bc95;hpb=c54407f455eaab62e2b254cac4ba4eab3986e776 diff --git a/src/dolda/jsvc/j2ee/TomcatContext.java b/src/dolda/jsvc/j2ee/TomcatContext.java index 8672d39..db53550 100644 --- a/src/dolda/jsvc/j2ee/TomcatContext.java +++ b/src/dolda/jsvc/j2ee/TomcatContext.java @@ -58,7 +58,10 @@ public class TomcatContext extends J2eeContext { logger.log(Level.WARNING, "no permissions to fetch Tomcat base directory while reading configuration", e); return; } - sysconfig.put("jsvc.storage", "file:" + new File(new File(base, "work"), "jsvc").getPath()); + File sroot = new File(new File(base, "work"), "jsvc"); + if(name != null) + sroot = new File(sroot, name()); + sysconfig.put("jsvc.storage", "file:" + sroot.getPath()); File cdir = new File(base, "conf"); try { loadprops(sysconfig, new File(cdir, "jsvc.properties"));