How to use variables in buildfile
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Liu
Posted On:   Thursday, January 23, 2003 02:11 PM

I want to print out the start time and end time for each task and am using the task to assign the time. However, since a property can only be assigned with a value once, I have to use different property names for each task.


How can I reuse the same variable? Or is there a better way to print out start/end time of each task?


Thanks!!


John

Re: How to use variables in buildfile

Posted By:   Erik_Hatcher  
Posted On:   Friday, January 24, 2003 12:51 AM

Use a custom BuildLogger implementation to capture/output the start and end times for tasks, targets, or the entire project. Look at the builtin XmlLogger for details, or simply use it if that is sufficient.


As for the property immutability issue - you could use the prefix attribute of to make unique names for the properties.

About | Sitemap | Contact