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: AW: Redefining a task
Date Thu, 20 Dec 2007 06:07:45 GMT
I tried that example and that redefines the existence <echo>.
You'll just earn a message ... 

Jan


---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
Buildfile: build.xml
Trying to override old definition of task echo
     [echo] hello

BUILD SUCCESSFUL
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----



> -----Urspr√ľngliche Nachricht-----
> Von: Vijay Aravamudhan [mailto:avijayr@gmail.com] 
> Gesendet: Mittwoch, 19. Dezember 2007 20:21
> An: Ant Users List
> Betreff: Re: AW: Redefining a task
> 
> does it work if the name of the presetdef is the same name as 
> the actual 
> task? I tried it some time ago - but with not much luck.
> 
> Also, the examples for presetdef show using it with a different name,
> 
> thanks,
> Vijay
> 
> Jan.Materne@rzf.fin-nrw.de wrote:
> > <project>
> >   <presetdef name="echo">
> >     <echo message="hello"/>
> >   </presetdef>
> >   <echo/>
> > </project>
> >
> >
> > Jan 
> >
> >   
> >> -----Urspr√ľngliche Nachricht-----
> >> Von: Dimitris Mouchritsas [mailto:dmouch@gmail.com] 
> >> Gesendet: Mittwoch, 19. Dezember 2007 15:56
> >> An: Ant Users List
> >> Betreff: Redefining a task
> >>
> >> Hi everyone, is there a way I can redefine a task to have 
> some default
> >> attributes?
> >> For example I would like to redefine the javac task to use 
> >> source="1.4",
> >> target="1.4", debug="true" always
> >> without needing to define them each time I call the task. Any 
> >> other property
> >> used should be passed to the
> >> original task unaltered. Thanks.
> >>
> >> -- 
> >> Dimitris Mouchritsas
> >> Computer Services
> >>
> >>     
> >
> > 
> ---------------------------------------------------------------------
> > 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