Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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