Consolidated ASP Classic MVC framework from best components
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

26 líneas
787B

  1. Option Explicit
  2. Dim fso
  3. Set fso = CreateObject("Scripting.FileSystemObject")
  4. Dim testsRoot
  5. testsRoot = fso.GetParentFolderName(WScript.ScriptFullName)
  6. Dim sourceFile
  7. sourceFile = fso.BuildPath(testsRoot, "web.config")
  8. If Not fso.FileExists(sourceFile) Then
  9. WScript.Echo "Source config not found: " & sourceFile
  10. WScript.Quit 1
  11. End If
  12. Call CopyConfig(sourceFile, fso.BuildPath(fso.BuildPath(testsRoot, "unit"), "web.config"))
  13. Call CopyConfig(sourceFile, fso.BuildPath(fso.BuildPath(testsRoot, "component"), "web.config"))
  14. Call CopyConfig(sourceFile, fso.BuildPath(fso.BuildPath(testsRoot, "integration"), "web.config"))
  15. WScript.Echo "Mirrored test web.config files updated."
  16. Sub CopyConfig(sourcePath, targetPath)
  17. Call fso.CopyFile(sourcePath, targetPath, True)
  18. End Sub

Powered by TurnKey Linux.