From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-29 07:42:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: A standard package for config files is needed Date: Wed, 29 May 2002 07:41:20 -0700 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1022683323 64018 137.194.161.2 (29 May 2002 14:42:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 29 May 2002 14:42:03 +0000 (UTC) Return-Path: X-Envelope-From: rleif@rleif.com X-Envelope-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-reply-to: <39ee2480.0205282322.3bbd4673@posting.google.com> Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:24931 Date: 2002-05-29T07:41:20-07:00 From: Bob Leif To: Volkert et al. Aonix had an Ada compiler for DOS that used a command language called AdaWorld. I would hazard that an Ada J code compiler could have packages with the same functionality. It might be a little verbose. However, this might be useful for those of us who are Ada users rather than providers. -----Original Message----- From: comp.lang.ada-admin@ada.eu.org [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Volkert Sent: Wednesday, May 29, 2002 12:23 AM To: comp.lang.ada@ada.eu.org Subject: Re: A standard package for config files is needed Preben Randhol wrote in message news:... > > So I hope now to kick off a discussion around this. The Java Property class is simple and easy to use! The Properties can be stored as an ASCI File, which is a List of (Key,Value) pairs. The Ada Version should be a bit more powerfull. e.g store triples of (Scope,Key,Value), may be in be form you described above: Scope.Key=Value >Program.Name=SuperDuperApp >Program.Version=1.0 >Directory.Help=/usr/doc/SuperDuperApp/ >Directory.Graphics=/usr/share/pixmaps/SuperDuperApp, The Java Interfaces may be a starting point! String getProperty(String key) Searches for the property with the specified key in this property list. String getProperty(String key, String defaultValue) Searches for the property with the specified key in this property list. void list(PrintStream out) Prints this property list out to the specified output stream. void list(PrintWriter out) Prints this property list out to the specified output stream. void load(InputStream inStream) Reads a property list (key and element pairs) from the input stream. Enumeration propertyNames() Returns an enumeration of all the keys in this property list, including the keys in the default property list. Object setProperty(String key, String value) Volkert