forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate assets json wrapper (Azure#35343)
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# get the temp directory | ||
$temp = [System.IO.Path]::GetTempPath() | ||
if (!(test-path $temp)) { | ||
throw "Unable to find temp directory" | ||
} | ||
|
||
$testProxyPath = join-path $temp "test-proxy" | ||
if (!(test-path $testProxyPath)) { | ||
throw "Unable to find test proxy directory. Run a test proxy test to install it." | ||
} | ||
# Need the path separator for search paths, not file paths. | ||
$pathsep = if ($env:OS -eq "Windows_NT") { ";" } else { ":" } | ||
$env:Path = $env:PATH + $pathsep + $testProxyPath | ||
Invoke-Expression "$(join-path $PSScriptRoot ../common/testproxy/transition-scripts/generate-assets-json.ps1) -TestProxyExe Azure.Sdk.Tools.TestProxy $args" |