Hi,

 

We store configuration files for each environment within the project source code. Each file has an environment key in their file name, e.g. web.dev,config, web,qa.config etc.

When I am building the project for a given environment (say QA) I need to do the following using NAnt:

 

- Find all the files for a given environment. They will match the pattern *.ENVNAME.*

- Rename all the files to *.* (Remove ENVNAME) in their respective directories. If a file already exists with the same name as renamed file, overwrite the previous file.

- Delete all the files belonging to *.ENVNAME.* pattern (I can use <delete> task for this)

 

I did not find any rename tasks in NAnt. I am wondering if someone has been in similar situation and have some solution.

 

Thanks in advance,

Sandeep

 

 

 

Reply via email to