ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject RE: Default settings for the javac task across multiple build fil es
Date Thu, 26 Jun 2003 11:32:32 GMT
Sorry for the delay in replying.

Hopefully I will have an experimental task ready soon.
I will post an update when it is available.

Peter

On Mon, 2003-06-23 at 12:47, Schaaf, A.P. (Arjan) wrote:
> Hi Peter,
> 
> Is this test code available on the ant website? It really sound like this
> could be very usefull to me.
> 
> Arjan
> 
> -----Original Message-----
> From: peter reilly [mailto:peter.reilly@corvil.com] 
> Sent: Tuesday, June 17, 2003 2:20 PM
> To: Ant Users List
> Subject: Re: Default settings for the javac task across multiple build fil
> es
> 
> 
> I have some test code that implements a primitive
> "templating" facility for ant.
> 
> <extendtype name="myjavac">
>     <javac deprecation="${javac.deprecation}"
>                debug = ${javac.debug}"/>
> </extendtype>
> 
> Use myjavac the same as javac, except that
> the deprecation and debug attributes get set.
> 
> <myjavac srcdir="${src.dir}" destdir="${classes.dir}"/>
> 
> 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 <cc/> 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 
> > an extra option you would have to go through all the build files to 
> > add the extra option. What I'm trying to accomplish is to create a 
> > global set of options for the javac task and only add reference to 
> > that set when I use 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=true
> > javac.deprecation=false
> >
> > and use that in your buildfiles
> > <property file="${user.dir}/ant.properties"/>
> > <javac debug="${javac.debug}".../>
> >
> >
> > Jan
> >
> > > -----Urspr√ľngliche 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 <javac> task. What I would like, is to have the same 
> > > settings (suchs as the deprecation and debug parameters) for the 
> > > <javac> task without having to
> > > specify each parameter in each build file over and over again. Is this
> > > 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
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message