This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
############################################################################## | |
## | |
## Written by: Jared Cheney <jared.cheney@gmail.com> | |
## | |
## Original Template written by: | |
## Brandon Zehm <caspian@dotconf.net> and Jared Cheney <elph@leph.net> | |
## | |
## License: | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chrome = {}; | |
chrome.devtools = {}; | |
chrome.declarativeWebRequest = {}; | |
//#region Types | |
//#region Chrome.AccessibilityObject | |
chrome.AccessibilityObject = function () { | |
/// <field name='type' type='string'>The type of this object, which determines the contents of 'details'.</field> | |
/// <field name='name' type='string'>The localized name of the object, like OK or Password. Do not rely on an exact string match because the text will be in the user's language and may change in the future.</field> | |
/// <field name='context' type='string'>The localized name of the context for the object, like the name of the surrounding toolbar or group of controls.</field> | |
/// <field name='details' type=''>Other details like the state, depending on the type of object.</field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun RepositoryHandler.enableMirror() { | |
all { | |
if (this is MavenArtifactRepository) { | |
val originalUrl = this.url.toString().removeSuffix("/") | |
urlMappings[originalUrl]?.let { | |
logger.lifecycle("Repository[$url] is mirrored to $it") | |
this.setUrl(it) | |
} | |
} | |
} |