https://issues.apache.org/bugzilla/show_bug.cgi?id=52236

             Bug #: 52236
           Summary: Idea: support 'overlays' shaped like Maven overlays
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: bimargul...@gmail.com
    Classification: Unclassified


Created attachment 27978
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27978
some code to look at.

The attached code allows tomcat to merge in one or more partial webapps to
build up the definitive webapp.

I wrote this code to support a particular development/debugging methodology.

I have a launcher program that uses the embedded API to launch tomcat with a
webapp with the static materials sitting where they sit in my dev tree, and the
classpath for the webapp taking the classes where eclipse writes them as well.

The result is live debugging. I wanted to extend this to the case where some of
my static content was merged in from 'overlays' in the maven-war-plugin sense
of the term, and I came up with the attached.

You may think it's nuts. You may think that it points up some modularity issues
around the context classses; there are an awful lot of tests for instanceof and
casts in this neighborhood.

If you have some sympathy for this idea, I would be willing to refine it and/or
work on an associated patch to change the modularity around
DirContext/BaseDirContext/StandardContext to make it less ugly to create.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to