Consolidated ASP Classic MVC framework from best components
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
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.