Skip to content

Commit

Permalink
Access denied issue with ANT and TFVC
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple authored and Nitin Gurram committed Aug 3, 2016
1 parent 3d40718 commit eaa3ddc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tasks/ANT/ant.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ if ($isCoverageEnabled)

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

try
{
Expand Down

0 comments on commit eaa3ddc

Please sign in to comment.