tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/ExtendedTomcat.java [45:68]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Context addWebapp( Host host, String url, String name, String path )
    {

        Context ctx = new StandardContext();
        ctx.setName( name );
        ctx.setPath( url );
        ctx.setDocBase( path );

        ContextConfig ctxCfg = new ContextConfig();
        ctx.addLifecycleListener( ctxCfg );

        ctxCfg.setDefaultWebXml( new File( configurationDir, "conf/web.xml" ).getAbsolutePath() );

        if ( host == null )
        {
            getHost().addChild( ctx );
        }
        else
        {
            host.addChild( ctx );
        }

        return ctx;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tomcat8-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat8/run/ExtendedTomcat.java [45:68]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Context addWebapp( Host host, String url, String name, String path )
    {

        Context ctx = new StandardContext();
        ctx.setName( name );
        ctx.setPath( url );
        ctx.setDocBase( path );

        ContextConfig ctxCfg = new ContextConfig();
        ctx.addLifecycleListener( ctxCfg );

        ctxCfg.setDefaultWebXml( new File( configurationDir, "conf/web.xml" ).getAbsolutePath() );

        if ( host == null )
        {
            getHost().addChild( ctx );
        }
        else
        {
            host.addChild( ctx );
        }

        return ctx;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



