Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 56361 invoked from network); 13 Dec 2006 13:59:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 13:59:45 -0000 Received: (qmail 25794 invoked by uid 500); 13 Dec 2006 13:59:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25767 invoked by uid 500); 13 Dec 2006 13:59:52 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25758 invoked by uid 99); 13 Dec 2006 13:59:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 05:59:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 05:59:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC5FD71413F for ; Wed, 13 Dec 2006 05:59:23 -0800 (PST) Message-ID: <19295302.1166018363834.JavaMail.jira@brutus> Date: Wed, 13 Dec 2006 05:59:23 -0800 (PST) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1868) Merge argument descriptors into SQLState strings so that SQLState documentation can be generated by a program In-Reply-To: <1995517.1158699623924.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/DERBY-1868?page=all ] Rick Hillegas closed DERBY-1868. -------------------------------- > Merge argument descriptors into SQLState strings so that SQLState documentation can be generated by a program > ------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1868 > URL: http://issues.apache.org/jira/browse/DERBY-1868 > Project: Derby > Issue Type: Improvement > Components: Build tools > Affects Versions: 10.2.1.6 > Reporter: Rick Hillegas > Assigned To: Rick Hillegas > Fix For: 10.3.0.0 > > Attachments: antlib.diff, derby-1868-lineEndings-v01.diff, derby-1868-merged-v01.diff, derby-1868-merged-v02.diff, derby-1868-merged-v03.diff, messages.dtd, messages.xml > > > See DERBY-1566. That JIRA introduced a program, written by David, which generates human-readable tables of message strings for inclusion in the Reference Guide. The tool doesn't patch in friendly arguments. That leaves the message strings peppered with unfriendly placeholders like {0}. {1}, etc.. Laura painstakingly editted the tables, by hand substituting in friendlier arguments like and . > We need to move Laura's substitutions into the source code so that David's program can automatically plug them in. This will save us a lot of grief when we generate future releases. Dan and Andrew have proposed approaches to this problem. Those approaches are discussed in DERBY-1566. Here is Andrew's comment on Dan's proposal: > "While Dan's suggestion here: > http://mail-archives.apache.org/mod_mbox/db-derby-dev/200608.mbox/%3c44F62247.2080500@apache.org%3e > to generate the message file and doc from a single XML file would be ideal, a simpler approach to implement would be to maintain the meanings of the markers in another properties file, identified by message key and marker number. So, e.g. the new properties file would contain: > 01500.0= > 01500.1= > Then ErrorMessageGenerator could look up the value of the markers by SQLState and MessageFormat marker number in the properties file, although this approach would require maintaining two files instead of one." > I glossed this further: "If we adopt Andrew's approach, I would recommend co-locating the argument descriptiors in the same properties file which contains the messages. This will help keep the argument descriptors from drifting out of sync with the messages themselves--that is a substantial advantage of Dan's approach." -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira