From user-return-68029-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Jun 11 23:43:11 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 48421 invoked from network); 11 Jun 2009 23:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 23:43:11 -0000 Received: (qmail 38063 invoked by uid 500); 11 Jun 2009 23:43:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 37989 invoked by uid 500); 11 Jun 2009 23:43:22 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 37979 invoked by uid 99); 11 Jun 2009 23:43:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 23:43:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of milu71@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 Jun 2009 23:43:12 +0000 Received: (qmail invoked by alias); 11 Jun 2009 23:42:49 -0000 Received: from e178061203.adsl.alicedsl.de (EHLO wladimir) [85.178.61.203] by mail.gmx.net (mp050) with SMTP; 12 Jun 2009 01:42:49 +0200 X-Authenticated: #48488578 X-Provags-ID: V01U2FsdGVkX1+pJ8VYbGepfwQS39bEj0XlOsiw1hQZyrcy1BZcPp thSptrSb15Gaiq Received: by wladimir (sSMTP sendmail emulation); Fri, 12 Jun 2009 01:42:31 +0000 Date: Fri, 12 Jun 2009 01:42:31 +0200 From: Michael Ludwig To: Ant Users List Subject: Re: Replacing build.xml with Build.java - Doing Ant builds directly from Java Message-ID: <20090611234231.GG3768@wladimir> References: <831738.69607.qm@web39802.mail.mud.yahoo.com> <192656A3-ABD0-4CD4-B756-080CB3FEAFB2@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <192656A3-ABD0-4CD4-B756-080CB3FEAFB2@mac.com> User-Agent: Mutt/1.4.2.2i X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-Virus-Checked: Checked by ClamAV on apache.org Ashley Williams schrieb am 11.06.2009 um 17:51:45 (+0100): > > // create the ant parent project > Project project = new Project(); > project.setName("project"); > project.init(); > > // create the child target > Target target = new Target(); > target.setName("target"); > project.addTarget(target); > project.addBuildListener(new Log4jListener()); The Ant XML isn't exactly compact and doesn't flow like, say, Python or Perl; but painstakingly recreating the XML structure from the API is even harder for the eyeball. But of course, this usage may have its places and applications. Michael Ludwig --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org