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

(-)a/java/org/apache/catalina/startup/Tomcat.java (+10 lines)
Lines 459-466 public class Tomcat { Link Here
459
    }
459
    }
460
460
461
    public Context addContext(Host host, String contextPath, String dir) {
461
    public Context addContext(Host host, String contextPath, String dir) {
462
        addContext(host, contextPath, contextPath, dir);
463
    }
464
465
    public Context addContext(Host host, String contextPath, String contextName, String dir) {
462
        silence(contextPath);
466
        silence(contextPath);
463
        Context ctx = new StandardContext();
467
        Context ctx = new StandardContext();
468
        ctx.setName( name );
464
        ctx.setPath( contextPath );
469
        ctx.setPath( contextPath );
465
        ctx.setDocBase(dir);
470
        ctx.setDocBase(dir);
466
        ctx.addLifecycleListener(new FixContextListener());
471
        ctx.addLifecycleListener(new FixContextListener());
Lines 474-482 public class Tomcat { Link Here
474
    }
479
    }
475
    
480
    
476
    public Context addWebapp(Host host, String url, String path) {
481
    public Context addWebapp(Host host, String url, String path) {
482
        addWebapp(host, url, url, path);
483
    }
484
485
    public Context addWebapp(Host host, String url, String name, String path) {
477
        silence(url);
486
        silence(url);
478
487
479
        Context ctx = new StandardContext();
488
        Context ctx = new StandardContext();
489
        ctx.setName( name );
480
        ctx.setPath( url );
490
        ctx.setPath( url );
481
        ctx.setDocBase(path);
491
        ctx.setDocBase(path);
482
        if (defaultRealm == null) {
492
        if (defaultRealm == null) {

Return to bug 51136