Greetings Nant users.

 

Does anyone have an idea on how to manipulate property strings? 

 

I have a property ${build.number} that contains a value of “1.0.801.1” I would like to replace the dots (.) with underscores (_)…  

 

I have gotten as far as using regExp in VB to return my desired result using the code:

 

<snip>

str = "1.0.801.0"

Set re = New regExp

re.Global = True

re.Pattern = "\."

str = re.Replace(str, "_")

WScript.echo str

 

 

This works fine using Windows scripting host, now how would I go about incorporating this into my build script and use the ${build.version} property?

 

ThanX in advance…

 

Shawn

Nant 0.84

Nant-contrib 0.84

Reply via email to