On Wed, 11 Jul 2001, Steffen Euch <[EMAIL PROTECTED]> 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

Reply via email to