tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: [5.0] System properties in server.xml (and elsewhere)
Date Wed, 15 Oct 2003 19:07:48 GMT

----- Original Message -----
From: "Remy Maucherat" <remm@apache.org>
To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
Sent: Wednesday, October 15, 2003 8:31 AM
Subject: Re: [5.0] System properties in server.xml (and elsewhere)


> Henri Gomez wrote:
>
> >>> Do you speak about the ${xxx} properties as present in Tomcat 3.3.x ?
> >>
> >>
> >>
> >> Possibly. Basically, if you have a "foo.bar" sys property, you can put
> >> "${foo.bar}" in server.xml, and it will be replaced with the property
> >> value (like in Ant). I didn't know this was present in 3.3.
> >
> >
> > Yes it was in TC 3.3.1 and you could also set the properties in the
> > command line if I recall well ;)
> >
> >
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_t
omcat
> >
> >
> > ...
> >
> > In Tomcat 3.3.1, each attribute value may use the ant-style variable
> > substitution by using "${variable}" in the attribute string, i.e.
> > attribute="text${variable}text".
>
> Let me guess. James did code all that stuff aeons ago, right ? :-D
>

Well, the aeons ago part is right ;-).  But it was the other ant person
(Costin).

The guts of the 3.3 replacement is
o.a.t.u.IntrospectionUtils.replaceProperties, so most of the code is already
in Tomcat 5.

> Remy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


Mime
View raw message