[Configuration] Patch to BaseConfiguration for clear

2003-01-30 Thread Kelvin Tan
See attached for patch to BaseConfiguration to allow subclasses to call clear() so that reloading of configurations are supported. Of course, subclasses have to implement their respective reload methods... On a related note, what are the conventions for adding yourself to the list of @authors?

[digester] wildcard matching with /*

2003-01-21 Thread Kelvin Tan
I've patched RulesBase to accept /foo/bar/* matches. Wondering if anyone's interested in the patch. So digester.addBeanPropertySetter(foo/bar/*); will work with foo bar propertyAsnafu/propertyA propertyBsnafu/propertyB /bar /foo where propertyA and propertyB are bar Javabean properties.

[dom4jconfiguration] Improved save()

2003-01-19 Thread Kelvin Tan
Added a little fault-tolerance into save() method, saving to temp file, then renaming if no errors thrown. See attached for patch. Index: DOM4JConfiguration.java === RCS file:

[dom4jconfiguration] Improved save()

2003-01-19 Thread Kelvin Tan
Added a little fault-tolerance into save() method, saving to temp file, then renaming if no errors thrown. See attached for patch. Index: DOM4JConfiguration.java === RCS file:

Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread Kelvin Tan
One thing people should know about dom4j and Resin: they don't like each other very much. :-) I've patched dom4j to work with Resin. Its an awful workaround, but it works. Contact me if anyone needs the patch. Kelvin -- To unsubscribe, e-mail: mailto:[EMAIL

Re: cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java

2003-01-14 Thread Kelvin Tan
ng Rein's SAX driver. Kelvin On Tue, 14 Jan 2003 10:19:35 -, James Strachan said: Wanna send me the patch I'll apply it? James --- http://radio.weblogs.com/0112098/ - Original Message ----- From: "Kelvin Tan" [EMAIL PROTECTED] To: "Jakarta Commo

Re: [Jelly] JellyServlet

2002-12-16 Thread Kelvin Tan
/commons/patches.html I'll just help me be able to apply it. James --- http://radio.weblogs.com/0112098/ - Original Message - From: Kelvin Tan [EMAIL PROTECTED] To: Jakarta Commons Developers List commons- [EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 6:46 AM Subject: Re: [Jelly

Re: [Jelly] JellyServlet

2002-12-10 Thread Kelvin Tan
1.1 2002/12/09 15:18:26 jstrachan Exp $ --- * $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/servlet/JellyServlet.java,v 1.1 2002/12/09 15:18:26 jstrachan Exp $ 59c59 * --- * 65d64 import java.io.File; 84,85c83,84 * * @author Kelvin Tan

[jelly] code style

2002-12-10 Thread Kelvin Tan
James, Any chance of code style guidelines for jelly? I noticed you reformatted JellyServlet. If you use idea, maybe you can post checkin the xml config file for codestyles... Regards, Kelvin The book giving manifesto - http://how.to/sharethisbook -- To unsubscribe, e-mail:

Re: [jelly] code style

2002-12-10 Thread Kelvin Tan
On Wed, 11 Dec 2002 01:57:35 -0500 (EST), bob mcwhirter said: Any chance of code style guidelines for jelly? I noticed you reformatted JellyServlet. If you use idea, maybe you can post checkin the xml config file for codestyles... I think he tends to follow the Sun Coding Conventions, much to

Re: [configuration] XmlConfiguration

2002-12-05 Thread Kelvin Tan
Please see attached. Kelvin On Thu, 05 Dec 2002 08:42:16 +0100, Martin Poeschl said: Kelvin Tan wrote: I've noticed XmlConfiguration to be unimplemented for awhile now. Is there any intention to do something about it? I have a basic implementation using dom4j and am willing to contribute

Re: [configuration] XmlConfiguration

2002-12-04 Thread Kelvin Tan
On Wed, 04 Dec 2002 14:25:10 +0100, Nicola Ken Barozzi said: In the Ant codebase, in the proposals/embed dir, ther is a task that uses jxpath for configuration. JXPath can make use of more things than just XML, and is thus much more flexible, and has xpath support. I'd take a look at that file

[configuration] XmlConfiguration

2002-12-03 Thread Kelvin Tan
I've noticed XmlConfiguration to be unimplemented for awhile now. Is there any intention to do something about it? I have a basic implementation using dom4j and am willing to contribute it if someone's interested... BaseConfiguration is populated by keys in the XML file when initialized. The

[FileUpload] Delete uploaded files on exit

2002-04-08 Thread Kelvin Tan
I've attached a patch for uploaded files to be deleted when the JVM exits properly. Basically a call to deleteOnExit for the uploaded file. I didn't really want a bunch of tmp files lying around. Regards, Kelvin cvs diff DefaultFileItem.java (in directory

Re: Calendar / Scheduler / Workflow

2002-02-14 Thread Kelvin Tan
FWIW, Fulcrum has a scheduler service which is an implementation of Unix's cron. Regards, Kelvin - Original Message - From: James House [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Friday, February 15, 2002 11:11 AM Subject: Re: Calendar / Scheduler /