NANT: ReplaceToken, loop over all properties defined in build

Posted by SharePoint Newbie on Stack Overflow See other posts from Stack Overflow or by SharePoint Newbie
Published on 2010-04-26T07:46:14Z Indexed on 2010/04/26 7:53 UTC
Read the original article Hit count: 292

Filed under:
|

Hi,

Is it possible to loop over all the properties and replace all token which correspond to them?

For example, if I have three properties defined, a,b,c, I want to replace all three tokens @a@, @b@, @c@ . I however do not want to set up the filterchain manually as properties may be added/removed later on.

I can accomplish this using a custom nant task, but is ther a way to do this through a build file alone.

Thanks,

© Stack Overflow or respective owner

Related posts about nant

Related posts about nantcontrib