Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 83032 invoked from network); 14 Jan 2009 14:34:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 14:34:18 -0000 Received: (qmail 67068 invoked by uid 500); 14 Jan 2009 14:34:18 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 66992 invoked by uid 500); 14 Jan 2009 14:34:17 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 66981 invoked by uid 99); 14 Jan 2009 14:34:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 06:34:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andrew.r.jaquith@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 14:34:10 +0000 Received: by wa-out-1112.google.com with SMTP id l24so292814waf.12 for ; Wed, 14 Jan 2009 06:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=wzvdkVdri9SOeFsJqD5zROXuG3r8d1Bft9qFL5r2fNI=; b=wkIw/QKrPB8jlqnP90H4cBjfoyy9nnpoaLtJ4QMF4btDOXYDQ1yFnYSoaMB0iIo4Bv NAJ+xP02ZuUZup5Tiybp12ASZ09tMbmAjT1V/8RKyfnyfbcRahKr6C5vha3buz2lG7gi G7ggL7FB15d7DzPRXJzvcIDHvBMO9nzzRKBNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=t9vD6YZOCSmppJVXml0m+3SObUgnlRRFAiTTlN768Qs105xIU0pN24EAFG4vJ4vETd 2RnKQqowzxYeYN2smhw6rHWbEJ99AbeckRkEd2uPtJn+Xq2VGCiZbe87IFcxQJDfcODW y5WU/LCBC3PWQEAMYLTKl3ZO31M1/5S6HC6sw= MIME-Version: 1.0 Received: by 10.115.19.19 with SMTP id w19mr133108wai.71.1231943628906; Wed, 14 Jan 2009 06:33:48 -0800 (PST) Date: Wed, 14 Jan 2009 09:33:48 -0500 Message-ID: Subject: New migration tool coming From: Andrew Jaquith To: jspwiki-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org All-- I got frustrated with the labor intensiveness of moving and renaming message keys in all of our localized bundles, so I decided to do something about it. Last night I coded up 'BundleMigrator', which will copy, move, rename or delete message keys from or between resource bundles, in bulk. The core code works beautifully, though there's no interface per se. Tonight I'll write a command-line interface. Any preferences? I'm thinking of something like this: BundleMigrator rename src/i18n/CoreResources error.oldname error.newname BundleMigrator delete src/i18n/CoreResources error.oldname BundleMigrator copy src/i18n/CoreResources src/i18n/templates/default error.oldname BundleMigrator move src/i18n/CoreResources src/i18n/templates/default error.oldname Another consideration: because we also have the ability to parse and modify JSPs (JSPMigrator), it would also be a fairly simple thing to add a 'find' command: BundleMigrator -jsp src/webdocs find error.oldname ...although grep works pretty well for this also. Thoughts? Andrew