Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 65751 invoked by uid 500); 3 Sep 2001 17:35:02 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Delivered-To: moderator for ant-user@jakarta.apache.org Received: (qmail 86886 invoked from network); 3 Sep 2001 14:57:37 -0000 Message-ID: <001601c13488$a0705ec0$3feea218@john2> Reply-To: "JohnA" From: "JohnA" To: "antuser" References: <00ca01c1343a$bc864c30$3feea218@john2> <20010903055323.OYFR4715.mss.rdc2.nsw.optushome.com.au@there> Subject: Re: global default properties Date: Mon, 3 Sep 2001 10:56:35 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Good to hear! ----- Original Message ----- From: "Peter Donald" To: Sent: Monday, September 03, 2001 1:43 AM Subject: Re: global default properties > Yep - almost exactly what you describe is slated for Ant2 in some form or > another. > > > On Mon, 3 Sep 2001 15:39, JohnA wrote: > > I've set up a global properties file: > > > > > > > > which contains some values for the compiler (e.g. build.compiler = jikes) > > > > I've tried to set up some of the other properties, "build.compiler.debug = > > on", but it doesn't seem to work. What I'd like to do is have minimal > > build.xml files by putting *all* the normal default values into a global > > properties file. > > > > I was wondering if ant can do this or if this idea was in the works for ant > > v2.0? (see below for a more detailed example) > > > > (please pardon this post, if it is a repeat!) > > John > > -------------------------------------- > > For example, instead of writing this in a build.xml file: > > > > > srcdir="src" > > destdir="${build}" > > deprecation="on" > > debug="on" > > /> > > > > I'd like to write these into the ant.global.properties file: > > > > javac.srcdir = src > > javac.deprecation = on > > javac.debug = on > > etc. > > > > Then, the build.xml file becomes: > > > > > > > > all other parameters supplied by the defaults in ant.global.properties > > files. > > > > If I need to I overwrite some properties in a build.xml: > > > > > > > > BTW taken to the "extreme" this would solve the compiler location > > problem... and, if the default properties file could, in turn, call an > > upper level properties file, then other benefits accrue. > > -- > Cheers, > > Pete > > --------------------------------------------------- > "It is easy to dodge our responsibilities, but we > cannot dodge the consequences of dodging our > responsibilities." -Josiah Stamp > --------------------------------------------------- > >