1

I want to redefine copy task from Nant without changing my .build configuration files. Is it possible in nant?

Msbuild has:

<UsingTask TaskName="SGen" AssemblyFile="Tools\Extensions.dll"/>

which can do that.

I wrote my copy task by don't know how to override it globally during nant script execution.

Sayed Ibrahim Hashimi
  • 43,864
  • 17
  • 144
  • 178
Irek
  • 83
  • 1
  • 5

1 Answers1

0

I'm not aware of anything like that in nant. Nant can call other nant scripts via the nant task. You could write a little nant build file with your different copy methods in it and call out to it whenever you want to do a copy. Use a property and the if and unless attributes to select which copy implementation you want.

robaker
  • 1,028
  • 7
  • 11