tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Marchesani" <>
Subject WebappLoader RFC
Date Mon, 12 Jun 2006 22:55:14 GMT
Hi All,
I have created a custom WebappLoader that allows additional classpath
settings.  It's use is as follows..





The reason for doing this is when developping a webapp that consists of
several smaller projects I wanted to be able to from within the ide
edit-compile-run skipping the deploy step.  Skipping the deploy step saves a
fair bit of tediousness.

My thiking is that this would be useful to others and hence this post.  Is
there interest in this being an included feature on the default
WebappLoader?  Or as an add on WebappLoader?  The number of lines/complexity
of code
this adds is minimal a gettter/setter for extendedClasspath and a loop at
the bottom of the setRepositories() method to add the entries in the
extendedClasspath to the proper places..

Also I am willing to clean up/refactoring the WebappLoader code if someone
is willing to be the committer and let me know what I need to provide..  I
am well versed in Classloader intracacies ;-)

As for cleanup there is code like this throughout WebappLoader and

       String results[] = new String[repositories.length + 1];
       for (int i = 0; i < repositories.length; i++)
           results[i] = repositories[i];
       results[repositories.length] = repository;
       repositories = results;


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message