Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 30673 invoked by uid 500); 17 Jun 2003 12:15:18 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 30656 invoked from network); 17 Jun 2003 12:15:17 -0000 Received: from k101-205.bas1.dbn.dublin.eircom.net (HELO corvil.com) (159.134.101.205) by daedalus.apache.org with SMTP; 17 Jun 2003 12:15:17 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id h5HCFGAG028451 for ; Tue, 17 Jun 2003 13:15:17 +0100 (IST) (envelope-from peter.reilly@corvil.com) Content-Type: text/plain; charset="iso-8859-1" From: peter reilly Organization: corvil To: Ant Users List Subject: Re: Default settings for the javac task across multiple build fil es Date: Tue, 17 Jun 2003 13:19:41 +0100 User-Agent: KMail/1.4.3 References: <11954DD87097D3118EC400508B55EA36F035D0@vepnaa.vep-nl.akzonobel.nl> In-Reply-To: <11954DD87097D3118EC400508B55EA36F035D0@vepnaa.vep-nl.akzonobel.nl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306171319.41748.peter.reilly@corvil.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have some test code that implements a primitive "templating" facility for ant. Use myjavac the same as javac, except that the deprecation and debug attributes get set. The "templating" is very limited - it can only set attributes. Another way to solve this problem is to refactor javac to be a bit like the task from ant-contrib's cpptasks. Peter On Tuesday 17 June 2003 12:19, Schaaf, A.P. (Arjan) wrote: > That's not exactly what I want. With this approach if you need to add a= n > extra option you would have to go through all the build files to add th= e > extra option. What I'm trying to accomplish is to create a global set o= f > options for the javac task and only add reference to that set when I us= e > the javac task in a build file. > > Arjan > > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: Tuesday, June 17, 2003 12:53 PM > To: user@ant.apache.org > Subject: AW: Default settings for the javac task across multiple build = fil > es > > > Use a property file. > E.g. %user_dir%\ant.properties > javac.debug=3Dtrue > javac.deprecation=3Dfalse > > and use that in your buildfiles > > > > > Jan > > > -----Urspr=FCngliche Nachricht----- > > Von: Schaaf, A.P. (Arjan) [mailto:Arjan.Schaaf@AkzoNobel.com] > > Gesendet am: Dienstag, 17. Juni 2003 12:49 > > An: 'user@ant.apache.org' > > Betreff: Default settings for the javac task across multiple > > build files > > > > Hi there, > > > > I'm trying to get something sorted out, but I can't find a solution. = I > > have multiple ant build files which all have a compile target using > > the task. What I would like, is to have the same settings > > (suchs as the > > deprecation and debug parameters) for the task > > without having to > > specify each parameter in each build file over and over again. Is thi= s > > possible? > > > > Thanks in advance. > > Arjan > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org