Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-cvs] CVS update: joist/java/org/joist/publish NoodleResources.properties.in NoodleResources.properties

Project highlights: Architectural Overview

joist
Discussion topic

Hide all messages in topic

All messages in topic

Re: [joist-dev] Re: [joist-cvs] CVS update: joist/java/org/joist/publish NoodleResources.properties.in NoodleResources.properties

Author edk
Full name Ed Korthof
Date 2000-08-21 08:42:26 PDT
Message On Mon, 21 Aug 2000, David Pellegrini wrote:

> Hi Ed!
>
> These two properties are specified already in zone.properties.in.
>
> They are accessible to servlets (such as Noodle) through myProperties
> (e.g., myProperties.getProp​erty("__HOSTNAME__")​).
>
> Non-servlets, such as NoodleFilterLoader.java, can access these
> properties via a singleton Properties object holding site-wide
> configuration (e.g., JoistProperties.getP​roperty("__HOSTNAME_​_")).
>
> I'd like to minimize the number of .in files we need to keep track of.
> __APACHE_PORT__ and __HOSTNAME__ are so fundamental that we should
> specify them in one place (for all of the java code, anyway).

sounds good. if jon doesn't get to it first, i'll muck with noodle so it
uses this; i just wanted to get it working. ;-)
 
thanks --

ed
--
   +=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=
   | Ed Korthof | edk at collab dot net | 415-247-1690 |
   +=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=+=-=​+=-=+=-=+=-=+=-=

Re: [joist-cvs] CVS update: joist/java/org/joist/publish NoodleResources.properties.in NoodleResources.properties

Author David Pellegrini <davidp at collab dot net>
Full name David Pellegrini <davidp at collab dot net>
Date 2000-08-21 01:09:10 PDT
Message Hi Ed!

These two properties are specified already in zone.properties.in.

They are accessible to servlets (such as Noodle) through myProperties (e.g., myProperties.getProp​erty("__HOSTNAME__")​).

Non-servlets, such as NoodleFilterLoader.java, can access these properties via a singleton Properties object holding site-wide configuration (e.g., JoistProperties.getP​roperty("__HOSTNAME_​_")).

I'd like to minimize the number of .in files we need to keep track of. __APACHE_PORT__ and __HOSTNAME__ are so fundamental that we should specify them in one place (for all of the java code, anyway).

-davidp

ed at tigris dot org wrote:
>
> User: ed
> Date: 00/08/20 23:15:59
>
> Added: java/org/joist/publish NoodleResources.properties.in
> Removed: java/org/joist/publish NoodleResources.properties
> Log:
> switch to .in for proper hostname/port
>
> Revision Changes Path
> 1.1 joist/java/org/joist​/publish/NoodleResou​rces.properties.in
>
> Index: NoodleResources.properties.in
> ====================​====================​====================​=======
> default.port=__APACHE_PORT__
> default.host=__HOSTNAME__
> prefilter.0=org.jois​t.publish.filters.Co​pyAllHeaders
> postfilter.0=org.joi​st.publish.filters.C​opyCookies
>
>
>

--
-=-=-=-=-=-=-=-=-=-=​-=-=-=-=-=-=-=-=-=-=​-=-=-=-=-=-=-=-=-=-=​-=-=-=-=-=-=-=
collab.net | open source | do what's right | now hiring smart people
Messages per page: