View | Details | Raw Unified | Return to bug 35054
Collapse All | Expand All

(-)HostConfig.java (-13 lines)
Lines 384-392 Link Here
384
        }
384
        }
385
385
386
        File file = new File(host.getAppBase());
386
        File file = new File(host.getAppBase());
387
        boolean makeRelative = false;
388
        if (!file.isAbsolute())
387
        if (!file.isAbsolute())
389
            makeRelative = true;
390
            file = new File(System.getProperty("catalina.base"),
388
            file = new File(System.getProperty("catalina.base"),
391
                            host.getAppBase());
389
                            host.getAppBase());
392
        try {
390
        try {
Lines 394-410 Link Here
394
        } catch (IOException e) {
392
        } catch (IOException e) {
395
            appBase = file;
393
            appBase = file;
396
        }
394
        }
397
        if (log.isInfoEnabled()) {
398
            if (!appBase.exists()) {
399
                String extraInfo = "";
400
                if (makeRelative) {
401
                    extraInfo = " neither absolute, nor in \"" +file.getAbsolutePath() + "\"";
402
                }
403
                log.info("no app-base exists for declared \""
404
                        + host.getAppBase() + "\"" +extraInfo
405
                        		);
406
            }
407
        } 
408
        return (appBase);
395
        return (appBase);
409
396
410
    }
397
    }

Return to bug 35054