Skip to content

Instantly share code, notes, and snippets.

@Red-Folder
Created September 20, 2013 19:39
Show Gist options
  • Save Red-Folder/6642746 to your computer and use it in GitHub Desktop.
Save Red-Folder/6642746 to your computer and use it in GitHub Desktop.
Write-Host "Checking if this is version specific config.xml"
$versionSpecificConfig = $env:workspace + "\res\xml\" + $env:pluginversion + "\config.xml"
if ((Test-Path $versionSpecificConfig -PathType Leaf)) {
Write-Host "Version specific config found: " + $versionSpecificConfig
Remove-Item ($env:workspace + "\res\xml\config.xml")
Copy-Item ($versionSpecificConfig) -Destination ($env:workspace + "\res\xml\")
} else {
Write-Host "No specific config.xml version. Will use standard."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment