Expanding properties in attributes of custom tasks
1 posts in topic
Flat View  Flat View

Posted By:   Aaron_Whittier
Posted On:   Wednesday, December 26, 2001 12:25 PM

I'm creating a custom task and I want to be able to expand the properties I put into attributes. For example, if I have:


in my task's setFoo(String foo) method it gets the value "${bar}". How do I expand that value?
I specifically do not want to just manually check for "${" and check the properties hashtable myself; presumably there's a method somewhere that does it :)

Re: Expanding properties in attributes of custom tasks

Posted By:   Erik_Hatcher  
Posted On:   Friday, December 28, 2001 04:46 PM

Did you check to see if its automatically doing the expansion for you? XML attributes get the properties expanded automatically, I'm almost certain.

But, if you must call it yourself, there is a static replaceProperties method in ProjectHelper that will do the trick.

About | Sitemap | Contact