Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 19974 invoked from network); 12 Feb 2004 13:26:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Feb 2004 13:26:06 -0000 Received: (qmail 16955 invoked by uid 500); 12 Feb 2004 13:25:55 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 16905 invoked by uid 500); 12 Feb 2004 13:25:55 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 16744 invoked from network); 12 Feb 2004 13:25:53 -0000 Received: from unknown (HELO hqexch01.upstate.com) (205.160.101.145) by daedalus.apache.org with SMTP; 12 Feb 2004 13:25:53 -0000 Received: from IQUITOS (ciaranlaptop.ltd.upstate.com [172.17.1.104]) by hqexch01.upstate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1YJKY8RH; Thu, 12 Feb 2004 08:27:35 -0500 Reply-To: From: "Eric Pugh" To: "'Guillaume Nodet'" , "'Jakarta Commons Users List'" Subject: RE: [Configuration] Problems with properties containing integers in the name Date: Thu, 12 Feb 2004 14:25:52 +0100 Message-ID: <005701c3f16b$bd567360$657ba8c0@IQUITOS> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, it seems like you should be able to go back and forth. Patches welcome! ERic > -----Original Message----- > From: Guillaume Nodet [mailto:guillaume.nodet@deliasystems.com] > Sent: Thursday, February 12, 2004 1:45 PM > To: Jakarta Commons Users List; epugh@upstate.com > Subject: RE: [Configuration] Problems with properties containing > integers in the name > > > What i needed is: > * get a string representation of the configuration (you > just point it to > me) > * build a new configuration from this string (we can't pass > it as is in > rmi) > > Regards, > Guillaume > > -----Message d'origine----- > De : Eric Pugh [mailto:epugh@upstate.com] > Envoy� : jeudi 12 f�vrier 2004 13:13 > � : 'Jakarta Commons Users List' > Objet : RE: [Configuration] Problems with properties > containing integers > in the name > > > Check out this method: > > http://jakarta.apache.org/commons/configuration/apidocs/org/ap > ache/commons/c > onfiguration/ConfigurationUtils.html#toString(org.apache.commo > ns.configurati > on.Configuration) > > Eric > > -----Original Message----- > > From: Guillaume Nodet [mailto:guillaume.nodet@deliasystems.com] > > Sent: Wednesday, February 11, 2004 2:35 PM > > To: Jakarta Commons Users List > > Subject: RE: [Configuration] Problems with properties containing > > integers in the name > > > > > > I got another problem also. I want to have a string > > representation of the > > configuration without using a temporary file (as the > > Configuration interface > > is not Serializable). I did not see any simple methods get > > this. The load > > and store functions do not accept InputSteam or OuputStream > objects... > > > > Regards, > > Guillaume > > > > -----Message d'origine----- > > De : Guillaume Nodet [mailto:guillaume.nodet@deliasystems.com] > > Envoy� : mercredi 11 f�vrier 2004 14:28 > > � : commons-user@jakarta.apache.org > > Objet : [Configuration] Problems with properties containing > > integers in > > the name > > > > > > I've tried to use the configuration component but ran into > > the following > > problems. > > I wanted to export a configuration (stored in a .properties > > file) to an xml. > > The problem is that i had some properties like this: > > xxx.yyy.1=zzz1 > > xxx.yyy.2=zzz2 > > ... > > > > Two problems arose: > > * the xml syntax does not support tag beginning by a numeric > > character, > > so the <1>, <2> tags are not valid > > * my list of properties contained more than 10 items and the > > subset method > > returned bad things. The subset method does not check for > > a '.' at the > > end of the prefix, so that xxx.yyy.10.zzz was returned > > when asking for a > > subset > > beginning with 'xxx.yyy.1'. > > > > Regards, > > > > Guillaume Nodet > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org