ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Attributes for several tasks all at once?
Date Wed, 11 Jul 2001 14:35:25 GMT
On Wed, 11 Jul 2001, Steffen Euch <euc@ep-ag.com> wrote:

> Is it possible to set the attributes (classpath, debug, deprecation,
> failonerror, ...) for several <javac> tasks all at once?

Ant2 is supposed to provide a way in form of user preferences (no, no
implementation and no schedule yet 8-).  This means you can give
default values for attributes that have not been specified explicitly.

> Or is there an ant feature that can be used like the C-preprocessor,
> to automatically replace text with other text (e.g. attributes for a
> task)?

Properties?

<property name="javac.debug" value="off" />
<javac debug="${debug}" ... />

and you can say 

anf -Djavac.debug=true

on the command line to enable debug for all javac tasks at once.  But
you still have to list these attributes yourself.

Stefan

Mime
View raw message