Skip to content

Commit eaa3ddc

Browse files
ericscipleNitin Gurram
authored andcommitted
Access denied issue with ANT and TFVC
1 parent 3d40718 commit eaa3ddc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tasks/ANT/ant.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ if ($isCoverageEnabled)
140140

141141
# Create temp copy - requried in case of TFVC
142142
Copy-Item $antBuildFile "$antBuildFile.tmp" -Force -ErrorAction SilentlyContinue
143-
Set-ItemProperty $antBuildFile -Name Attributes -Value Normal -Force -ErrorAction SilentlyContinue
143+
Get-ChildItem -LiteralPath $env:BUILD_SOURCESDIRECTORY -Filter '*.xml' -Recurse |
144+
ForEach-Object {
145+
Set-ItemProperty -LiteralPath $_.FullName -Name Attributes -Value Normal -Force -ErrorAction SilentlyContinue
146+
}
144147

145148
try
146149
{

0 commit comments

Comments
 (0)