Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 11854 invoked from network); 12 Oct 2004 11:59:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Oct 2004 11:59:42 -0000 Received: (qmail 87694 invoked by uid 500); 12 Oct 2004 11:59:01 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 87575 invoked by uid 500); 12 Oct 2004 11:58:58 -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 87498 invoked by uid 99); 12 Oct 2004 11:58:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of steve.morin@gmail.com designates 216.239.56.250 as permitted sender) Received: from [216.239.56.250] (HELO mproxy.gmail.com) (216.239.56.250) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Oct 2004 04:58:56 -0700 Received: by mproxy.gmail.com with SMTP id w41so68501cwb for ; Tue, 12 Oct 2004 04:58:54 -0700 (PDT) Received: by 10.11.116.50 with SMTP id o50mr22089cwc; Tue, 12 Oct 2004 04:58:54 -0700 (PDT) Received: by 10.11.99.43 with HTTP; Tue, 12 Oct 2004 04:58:54 -0700 (PDT) Message-ID: Date: Tue, 12 Oct 2004 07:58:54 -0400 From: steve morin Reply-To: scruffy323@aol.com To: Ant Developers List Subject: Re: AW: [PATCH] set filename of default buildfile In-Reply-To: <879A5AD5DD0ED511891F0003473A9B560E23F6EA@Z011004> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <879A5AD5DD0ED511891F0003473A9B560E23F6EA@Z011004> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jan and Peter to answer your questions I have a couple of scenarios where this could be useful. 1st usage convenience.. A person that often uses a different build file could use a shell script that calls ant using a different default for convenience. =09 =09#!/bin/sh =09ant -df config.xml "$@" or=20 =09alias cfg=3D"ant -df config.xml" 2nd usage dynamic change of ant task default target. >>=09Ant >>=09Description >>=09 >>=09Runs Ant on a supplied buildfile. This can be used to build subprojects. This task must not be used outside of a target if it invokes the same build file it is part of. >>=09 >>=09When the antfile attribute is omitted, the file "build.xml" in the supplied directory (dir attribute) is used. 3rd usage dynamic change of subant task calls >>=09antfile =09 Build file name, to use in conjunction with directories. String Optional >>=09Defaults to "build.xml". >>=09If genericantfile is set, this attribute is ignored.=20 Of the three usages I believe the 1st and 3rd usages have the most merit. I believe the 1st could be very beneficial to many people to speed development. It's a minor changes and requires little maintenance but increases flexibility greatly. Dynamic usage of subant would great to simplify ant usage for projects that multiple preprocess. --build.xml =20 --bashrc alias doc=3D"and -df docs.xml" alias gen=3D"ant -df generate.xml" alias cfg=3D"ant -df config.xml" cmd: gen -f build.xml cmd: cfg -f build.xml cmd: ant Why doing that? ant -f other.xml would work. Jan The patch did not get tru the mailing list. Open a bugzilla report for the patch. How would this patch be useful? Peter - Hide quoted text - steve morin wrote: >This patch allowes people to set the default filename that ant uses if >none is given and sets ant.file.default to default file name value. > >M docs/manual/running.html >M docs/manual/using.html >M src/main/org/apache/tools/ant/Main.java >M src/main/org/apache/tools/ant/taskdefs/Ant.java >M src/main/org/apache/tools/ant/taskdefs/SubAnt.java > >I would have provided unit tests with this and would appreciate some >one pointing me in the right direction so I can create them. > > > On Mon, 11 Oct 2004 12:04:28 +0200, jan.materne@rzf.fin-nrw.de wrote: > Why doing that? > ant -f other.xml > would work. >=20 > Jan >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Peter Reilly [mailto:peterreilly@apache.org] > > Gesendet am: Montag, 11. Oktober 2004 10:50 > > An: Ant Developers List > > Betreff: Re: [PATCH] set filename of default buildfile > > > > The patch did not get tru the mailing list. > > Open a bugzilla report for the patch. > > How would this patch be useful? > > > > Peter > > steve morin wrote: > > > > >This patch allowes people to set the default filename that > > ant uses if > > >none is given and sets ant.file.default to default file name value. > > > > > >M docs/manual/running.html > > >M docs/manual/using.html > > >M src/main/org/apache/tools/ant/Main.java > > >M src/main/org/apache/tools/ant/taskdefs/Ant.java > > >M src/main/org/apache/tools/ant/taskdefs/SubAnt.java > > > > > >I would have provided unit tests with this and would appreciate some > > >one pointing me in the right direction so I can create them. > > > > > > > > > > > >------------------------------------------------------------- > > ----------- > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > > >For additional commands, e-mail: dev-help@ant.apache.org > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > > For additional commands, e-mail: dev-help@ant.apache.org > > >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org