ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Gordon" <tim.gor...@allustra.com>
Subject RE: Default settings for the javac task across multiple build files
Date Tue, 17 Jun 2003 14:27:11 GMT
Furthermore, there's an <import> task in ANT 1.6alpha (which is the latest
version in CVS at Apache).

If you've got a section of tasks that you can refactor into the same target
in multiple build files then you could move that target into a library build
file and use <import> to import it into both the files which use that
target. It's still possible to express depends="" on targets imported using
<import>. Very cool.

Tim

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: 17 June 2003 11:53
To: user@ant.apache.org
Subject: AW: Default settings for the javac task across multiple build
files


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


Mime
View raw message