Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 91098 invoked by uid 500); 31 Jul 2003 12:28:54 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 91066 invoked from network); 31 Jul 2003 12:28:53 -0000 Received: from mail.paranor.ch (HELO nts?par1.paranor.ch) (195.65.4.180) by daedalus.apache.org with SMTP; 31 Jul 2003 12:28:53 -0000 Received: by nts_par1.paranor.ch with Internet Mail Service (5.5.2448.0) id <3SL6C2JH>; Thu, 31 Jul 2003 14:28:49 +0200 Message-ID: <36E996B162DAD111B6AF0000F879AD1A76C336@nts_par1.paranor.ch> From: "Wannheden, Knut" To: 'Ant Developers List' Subject: RE: override Date: Thu, 31 Jul 2003 14:28:49 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3575F.4B63BF66" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3575F.4B63BF66 Content-Type: text/plain; charset="iso-8859-1" This very much reminds me of what I was doing in our build environment. I basically had a template buildfile and could override that for any project like this: <.../> <.../> The difference is only that I didn't implement as a task (top-level tasks didn't exist back then). (Similarly with and .) Instead I generated a new buildfile with XSLT (later with dom4j). The problem I had was that it was hard to control where to place the top-level tasks in the generated buildfile. But this looks like it would be simpler with a renaming . -- knut > > I'd like to take a slightly different angle on the > issue by getting > some thoughts on this little experimental task I wrote. I > haven't cleaned it > up at all (lots of unused imports, inner classes etc). Anyway > it lets you > override any target in the build. e.g. This build file > > > > classname="org.apache.tools.ant.taskdefs.Override"/> > classname="org.apache.tools.ant.taskdefs.Override$Super"/> > > > > > > > > > > > > > > > > > > > ------_=_NextPart_001_01C3575F.4B63BF66--