ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: When do I need to explicitly convert the ${...}'s
Date Tue, 15 Feb 2005 18:11:48 GMT
This is orthogonal, but <tstamp> can already accept a fomatter.

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Ninju Bohra <ninju_bohra@yahoo.com> wrote on 02/15/2005 12:45:14 PM:

> Hey Guys (and gals),
> 
> I was writing my own task and need recieve a date format from the user.
> Wanting to make the task as flexible as possible, I want to be able 
> to support values that contain ${...} text (that needs to be 
> expanded) as well as verbatim text.
> 
> The question is that it appears that the ${...} are already replaced
> for me on basic attribute sets...
> For example
>  <tstamp/>
>     <dateFormatter inputDate="${TODAY}" dateFormat="MMMM dd yyyy">
> 
> In my new task (dateFormatter) the inputDate attribute contains the 
> value of the TODAY property.
> 
> I am not saying this bad, I was just surprised that it was already 
> done for me...what the value of the Project.replaceProperties(...) 
> method then?
> 
> 
> ---------------------------------
> Do you Yahoo!?
>  Yahoo! Search presents - Jib Jab's 'Second Term'
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message