Sha256: 32895e1f21af82128bac1a09fd5a39b36e44e59bb3b6d11c85a24a6a754a6135
Contents?: true
Size: 575 Bytes
Versions: 11
Compression:
Stored size: 575 Bytes
Contents
//Make a copy of the tests dir, then run this script, giving the location //of the tests copy, and the URL to use dojo.js var startDir = arguments[0]; var xdDojoUrl = arguments[1]; load("jslib/fileUtil.js"); load("jslib/buildUtil.js"); var fileList = fileUtil.getFilteredFileList(startDir, /\.(html|htm)$/, true); for(var i = 0; i < fileList.length; i++){ var fileName = fileList[i]; var fileContents = fileUtil.readFile(fileName); fileContents = fileContents.replace(/src\=\".*dojo.js"/, 'src="' + xdDojoUrl + '"'); fileUtil.saveUtf8File(fileName, fileContents); }
Version data entries
11 entries across 11 versions & 2 rubygems