You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
740 B
10 lines
740 B
$env:JAVA_HOME = "C:\Program Files\Android\openjdk\jdk-21.0.8"
|
|
$env:Path = "$env:JAVA_HOME\bin;" + $env:Path
|
|
Set-Location "C:\Users\COMPUTER1\Desktop\mobi\DCT\Android"
|
|
|
|
Remove-Item -Path "C:\Users\COMPUTER1\Desktop\mobi\DCT\test_done.txt" -Force -ErrorAction SilentlyContinue
|
|
Remove-Item -Path "C:\Users\COMPUTER1\Desktop\mobi\DCT\test_result.log" -Force -ErrorAction SilentlyContinue
|
|
|
|
$proc = Start-Process -FilePath "cmd.exe" -ArgumentList "/c call gradlew.bat testDebugUnitTest > C:\Users\COMPUTER1\Desktop\mobi\DCT\test_result.log 2>&1 & echo DONE! > C:\Users\COMPUTER1\Desktop\mobi\DCT\test_done.txt" -WorkingDirectory "C:\Users\COMPUTER1\Desktop\mobi\DCT\Android" -WindowStyle Hidden -PassThru
|
|
|
|
Write-Output "STARTED PID $($proc.Id)"
|
|
|