Even better, if the resulting file had comments!  That is another nasty
side effect of using java.util.Properties to do the work - it strips out
the comments. :-( 

Most likely, I'll have to write my own Properties class that does the
same basic thing as the java.util.Properties to avoid some of these side
effects.

Richard

On Tue, 2003-02-11 at 15:08, Mark Womack wrote: 
> It would be nice if the properties were sorted by name in the resulting
> file.  Then the related properties would be grouped together. :-)
> 
> -Mark
> 
> > -----Original Message-----
> > From: Richard Bair [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 11, 2003 1:49 PM
> > To: Log4J Developers List
> > Subject: RE: Property Config order independent?
> > 
> > 
> > Ya, I checked out the PropertyConfigurator source.  It loads the
> > properties into a Properties object via the load method, 
> > which suggests
> > as well that order isn't important.  Also, a quick test seemed to
> > confirm it as well.
> > 
> > Thanks,
> > Richard
> > On Tue, 2003-02-11 at 14:39, Mark Womack wrote:
> > > You should look at the PropertyConfigurator source to be sure.
> > > 
> > > -Mark
> > > 
> > > > -----Original Message-----
> > > > From: Richard Bair [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, February 11, 2003 1:25 PM
> > > > To: Log4J Developers List
> > > > Subject: Property Config order independent?
> > > > 
> > > > 
> > > > All,
> > > > 
> > > > I'm working on that log4j configuration gui, and am using the
> > > > java.util.Properties class for reading the standard 
> > properties style
> > > > log4j config file.  When the Properties class stores its data 
> > > > back into
> > > > a file, it does so in a different order than the original 
> > file.  Does
> > > > this matter?  I am under the impression that the order in 
> > the file is
> > > > unimportant, but since I've only ever used the xml 
> > > > configuration files,
> > > > I'm not 100% certain on this.
> > > > 
> > > > Thanks,
> > > > Richard
> > > > 
> > > > 
> > > > 
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > 
> > > 
> > > 
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to