tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup CatalinaProperties.java
Date Wed, 24 Sep 2003 19:09:29 GMT
luehe       2003/09/24 12:09:29

  Modified:    catalina/src/share/org/apache/catalina/startup
                        CatalinaProperties.java
  Log:
  Added setProperty method.
  
  For example, this will allow the value for the "noTldJars" property to
  be determined and set dynamically.
  
  Revision  Changes    Path
  1.2       +17 -4     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/CatalinaProperties.java
  
  Index: CatalinaProperties.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/CatalinaProperties.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CatalinaProperties.java	24 Oct 2002 13:53:22 -0000	1.1
  +++ CatalinaProperties.java	24 Sep 2003 19:09:29 -0000	1.2
  @@ -117,6 +117,19 @@
       }
   
   
  +    /**
  +     * Sets the property with the specified key to the specified value.
  +     *
  +     * @param key the property key
  +     * @param value the property value
  +     * @return the previous value of the specified key in the property
  +     *         list, or <code>null</code> if it did not have one.
  +     */
  +    public static Object setProperty(String key, String value) {
  +        return properties.setProperty(key, value);
  +    }
  +
  +
       // --------------------------------------------------------- Public Methods
   
   
  
  
  

Mime
View raw message