mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Add a test for merging existing toolchains.xml (#151)
This commit is contained in:
@@ -42,3 +42,8 @@ export function getPredefinedToolchains(): string | null {
|
||||
toolchainsXml += `</toolchains>\n`
|
||||
return toolchainsXml
|
||||
}
|
||||
|
||||
export function mergeToolchainContent(existingToolchainContent: string, preInstalledToolchains: string): string {
|
||||
const appendedContent = preInstalledToolchains.split('<toolchains>').pop()!
|
||||
return existingToolchainContent.replace('</toolchains>', appendedContent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user