Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 95883 invoked from network); 7 Mar 2001 14:57:14 -0000 Received: from mail.alphalink.com.au (203.24.205.7) by h31.sny.collab.net with SMTP; 7 Mar 2001 14:57:14 -0000 Received: from donalgar (d306-ps0-mel.alphalink.com.au [202.161.105.52]) by mail.alphalink.com.au (8.9.3/8.9.3) with SMTP id BAA12455 for ; Thu, 8 Mar 2001 01:57:01 +1100 Message-Id: <3.0.6.32.20010308013357.0214f100@alphalink.com.au> X-Sender: gdonald@alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 08 Mar 2001 01:33:57 +1100 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: Feature Request: Ant batching support In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 08:20 7/3/01 -0600, John.D.Casey@mail.sprint.com wrote: >I'm looking to support a directory structure in my build process that >is fairly dynamic. In addition, most of the other developers on this >project don't know Ant, and really have no need to, other than to put >their source into the build. Currently, every time someone adds a >package to the src directory, they then have to wait for me to put a >target into the master build file to include their code in the build. Could I see your build file because that should not be the case - do you have some odd packaging requirements? >Here's my suggestion: I'd like to have the ability to batch the Ant >task, using a tag and the target specified as an attribute to >, in order to provide implicit inclusion in the build process by >just dropping in a generic template build.xml into their package >directory. Special cases could then be dealt with on a case-by-case >basis, wherein things like special targets could be included by me. Such requests have been made before and almost universally it has been suggested that some sort of pre-ant transformation stage (XSLT/Velocity/CSS/Other) is the way to do this. However if you want to do it this way in meantime then thats fine with me ;) >Also: I'd like the ability to specify , or -1 We have discussed the notion of scope before and I much prefer something like adding a scope="parent" attribute to properties to force them "up". This is something that I am 90% sure will be implemented in Ant2 in some form or another. Would this be sufficient for you ? >something like this, in order to preserve the environment of the child >project into the parent's. This would be useful in setting a common >build environment from many build.xml files, which would, in turn, help >to elegantly support surgical operations like compiling only a certain >package, or junit testing it... another way is to include a xml fragment via standard DTD method (see FAQ for details). Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*