ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Is it possible to override default attribute values for Ant t asks?
Date Mon, 23 May 2005 09:09:41 GMT
The other scripts should use properties than you can provide other values
while
invocation.

master1.xml
  <ant ... ><arg name="javac.debug" value="on"/></ant>

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


Jan



> -----Urspr√ľngliche Nachricht-----
> Von: Kumar, Pankaj [mailto:pankaj_kumar@hp.com]
> Gesendet am: Freitag, 20. Mai 2005 01:32
> An: user@ant.apache.org
> Betreff: Is it possible to override default attribute values for Ant
> tasks?
> 
> Hi,
> 
>  
> 
> I have a main Ant script which invokes a number of other scripts using
> "ant" task. These scripts invoke "javac" task without specifying any
> value for attribute "debug" (so the default value "off" is used).
> 
>  
> 
> I would like to change the default of "off" to "on" for all javac
> invocations without modifying all the different script files. Is it
> possible with Ant?
> 
>  
> 
> Thanks in Advance,
> 
> Pankaj Kumar
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message