Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 65991 invoked from network); 21 Feb 2002 19:20:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Feb 2002 19:20:14 -0000 Received: (qmail 26104 invoked by uid 97); 21 Feb 2002 19:19:59 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 26075 invoked by uid 97); 21 Feb 2002 19:19:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 26036 invoked from network); 21 Feb 2002 19:19:58 -0000 Message-ID: <3C7547C2.8090407@yahoo.com> Date: Thu, 21 Feb 2002 14:17:22 -0500 From: Calvin Yu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: [logging][PATCH] Applet Compatibility Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The following patch allowed commons-logging to run in an applet environment without having to sign my applets. Calvin Index: LogFactoryImpl.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java,v retrieving revision 1.4 diff -r1.4 LogFactoryImpl.java 389,391d388 < if (logClassName == null) { < logClassName = LOG_DEFAULT; < } 393a391,393 > if (logClassName == null) { > logClassName = LOG_DEFAULT; > } Index: SimpleLog.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/SimpleLog.java,v retrieving revision 1.2 diff -r1.2 SimpleLog.java 158,163c158,165 < // add all system props that start with the specified prefix < Enumeration enum = System.getProperties().propertyNames(); < while(enum.hasMoreElements()) { < String name = (String)(enum.nextElement()); < if(null != name && name.startsWith(systemPrefix)) { < simpleLogProps.setProperty(name,System.getProperty(name)); --- > try { > // add all system props that start with the specified prefix > Enumeration enum = System.getProperties().propertyNames(); > while(enum.hasMoreElements()) { > String name = (String)(enum.nextElement()); > if(null != name && name.startsWith(systemPrefix)) { > simpleLogProps.setProperty(name,System.getProperty(name)); > } 164a167 > } catch (SecurityException e) { _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: