tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <g...@edamame.stinky.com>
Subject Re: proposal of a new handling of ApacheConfog.java
Date Mon, 19 Jun 2000 13:50:25 GMT
It looks great in concept. Template files are better than hardcoded
print statements any day.

I'd need to see your template files to be sure it all works right.

Random notes:

Why do you need pre and post files? Why not just one template file?

The whole thing could be done almost trivially by including another
jakarta project, regexps.  Check out http://jakarta.apache.org/regexp/
and you can delete your readConfig and createConfig methods.  

Is there a reason to use %c/%p instead of some other escape syntax?
For instance, ant-style ${context} or JSP-style <%=context%> or...

 - Alex

On Mon, Jun 19, 2000 at 09:48:47PM +0200, Jochen Schmitt wrote:
> Hallo,
> 
> I have developed a new proposal to generate the config file of
> apache by the module ApacheConfig.java.
> 
> In my proposal, the file will build on base of thre source files.
> 
> the first file contains the head of the resulting configuration
> file.
> 
> the seconed fle is a template, whick will be used to generate the
> configuration part depending on the available contexts of the
> tomcat server.
> 
> This file contains placeholders %c and %p wich will be replace by
> the name and the docbase of each context.
> 
> Afte all there is a third file, which contain the button of the
> configuration file.
> 
> You can download the module from
> 
> http://www.herr-schmitt.de/ApacheConfig.java
> 
> You must copy it to $TOMCAT/src/share/org/apache/tomcat/tasks/
> to intigrate it on your tomcat distribution.
> 
> Regards: Jochen Schmitt
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

-- 
Alex Chaffee                       mailto:alex@jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

Mime
View raw message