From torque-dev-return-7039-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Thu Aug 03 16:07:12 2006 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 76774 invoked from network); 3 Aug 2006 16:07:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 16:07:12 -0000 Received: (qmail 38681 invoked by uid 500); 3 Aug 2006 16:07:05 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 38660 invoked by uid 500); 3 Aug 2006 16:07:04 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 38620 invoked by uid 99); 3 Aug 2006 16:07:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 09:07:04 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Greg.Monroe@dukece.com designates 65.112.55.73 as permitted sender) Received: from [65.112.55.73] (HELO mail.dukece.com) (65.112.55.73) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 09:07:02 -0700 Received: from dukece-mail3.dukece.com ([192.168.1.222]) by mail.dukece.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 3 Aug 2006 12:07:02 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6B716.CE4EA456" Subject: Proposal: Supporting local and add-on Generator "Override" jars Date: Thu, 3 Aug 2006 12:06:40 -0400 Message-ID: <8F5843B903F59D4C8C6806BB49A391190128B130@dukece-mail3.dukece.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Proposal: Supporting local and add-on Generator "Override" jars Thread-Index: Aca3Fs4C6faS3U1mR5G18uQL6f3jJg== From: "Greg Monroe" To: "Apache Torque Developers List" X-OriginalArrivalTime: 03 Aug 2006 16:07:02.0828 (UTC) FILETIME=[DB9CAEC0:01C6B716] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6B716.CE4EA456 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've been looking at how to package, document, contribute my betwixt map/dtd generation code. As Thomas pointed out,=20 it's not truely mainstream Torque but might be a useful=20 addon. Anyway, this got me thinking about how to best=20 support template and/or generator local modifications or=20 add-on.=20 =20 If the generator build scripts supplied by the Torque=20 distro had classpaths that first tried to add any=20 *-override.jar files before the distro files, then=20 Templates and generator classes could easily be locally=20 overriden. This is trivial to do with the Ant=20 torque-build.xml. I assume that it would be easy in Maven? =20 =20 If no *override.jar files exist, it's a standard install. =20 But if you've got local changes to implement or want to=20 use a supplied add-on, just add *override.jar files to the correct directory(s) and use the standard generation processes. =20 IMHO, this seems cleaner than trying to maintain a full customized template or generator distros. If a new=20 version comes out, just grab the standard, check for any gottcha's between it and your modified code, add back in your override jars. All the benefits of a new version with your local mods included. =20 In a lot of cases, like changes to sql generation=20 templates (e.g. MySQL Table options ) or new db=20 adaptor support (like Informix/MSSQL7), this will be=20 very easy. These areas don't change a lot or are mostly new templates.=20 =20 It also allows for easier add-on contributions. An add-on could be supplied as a set of jars that are simply put in the correct directories using common How-To instructions. The add-in supplier just needs to document any additional settings. =20 It's not perfect since add-on's can override each other=20 and break... but it's better than it was. =20 Anyway, if folks think this is worth it, I'll sign up for a=20 first pass at documenting and changing the build scripts.=20 =20 However, I'm not a Maven maven so can anyone suggest the correct way to do this in Maven? I pretty sure it involves changing torque:init goal classpath in the plugin.jelly file. But not exactly sure how to do this. (but learnings half the fun...lol) =20 Greg Greg Monroe (919)680-5050 C&IS Solutions Team Lead Duke Corporate Education, Inc. 333 Liggett St. Durham, NC 27701 =20 Duke CE Privacy Statement Please be advised that this e-mail and any files transmitted with it are = confidential communication or may otherwise be privileged or = confidential and are intended solely for the individual or entity to = whom they are addressed. If you are not the intended recipient you may = not rely on the contents of this email or any attachments, and we ask = that you please not read, copy or retransmit this communication, but = reply to the sender and destroy the email, its contents, and all copies = thereof immediately. Any unauthorized dissemination, distribution or = copying of this communication is strictly prohibited. ------_=_NextPart_001_01C6B716.CE4EA456--