Consolidated ASP Classic MVC framework from best components
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

26 řádky
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.