Ninju Bohra <[EMAIL PROTECTED]> writes: > 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?
I think the way Ant works is the most comfortable for most of Ant task developpers. In your case (if existing tstamp date formatter does not suit your needs), you have to work around the property replacement. You can define your API to ask a property like inputDate="TODAY" and do the job considering inputDate is a property name. Regards, -- Yves Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]