Consolidated ASP Classic MVC framework from best components
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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