Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 53852 invoked from network); 3 Sep 2005 19:24:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Sep 2005 19:24:14 -0000 Received: (qmail 98240 invoked by uid 500); 3 Sep 2005 19:24:14 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 97874 invoked by uid 500); 3 Sep 2005 19:24:12 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 97841 invoked by uid 99); 3 Sep 2005 19:24:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2005 12:24:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2005 12:24:25 -0700 Received: from localhost (localhost [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id D3DA33706A for ; Sat, 3 Sep 2005 20:24:09 +0100 (BST) Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 20024) with LMTP id 30518-02 for ; Sat, 3 Sep 2005 20:24:07 +0100 (BST) Received: from timmay.hpl.hp.com (timmay-hb.hpl.hp.com [15.144.59.39]) by tobor.hpl.hp.com (Postfix) with ESMTP id B08693705F for ; Sat, 3 Sep 2005 20:24:06 +0100 (BST) Received: from [16.27.160.87] ([16.27.160.87]) by timmay.hpl.hp.com (8.13.2/8.13.2) with SMTP id j83JO04G013636 for ; Sat, 3 Sep 2005 20:24:01 +0100 (BST) Message-ID: <4319F883.1090809@apache.org> Date: Sat, 03 Sep 2005 20:24:51 +0100 From: Steve Loughran User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: programmatically creating and marshalling antfiles References: <4317C3A3.1050002@samizdatdigital.org> In-Reply-To: <4317C3A3.1050002@samizdatdigital.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPLB-IMAP-MailScanner-Information: Please contact the Helpdesk for more information X-HPLB-IMAP-MailScanner: Found to be clean X-HPLB-IMAP-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N jonathan gold wrote: > > > hi. i'm getting back to this now, and saw that there were a few more > responses. to answer your question -- it's the latter. i've gone the xml > route. the problem is that i have many modules interacting to build a > project, and it's difficult, though not impossible, to do this with DOM, > as i am now. it's not the DOM that makes it hard -- but the lack of > typing, thus the desire to use the java objects, with their convenient > accessors and access to the current project structure and type safety. > ahh, you are in the "O/X mapping is soluble camp", I see. You could use Xom and provide classes (and a builder) for the core Ant things (project, target, core tasks) that map typed get/set to attribute/element manipulation of the nodes. This is what I do in my projects, and while it takes effort, it works well with XPath/Jaxen -steve --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org