-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunAXBuild.ps1
More file actions
24 lines (20 loc) · 2.18 KB
/
Copy pathRunAXBuild.ps1
File metadata and controls
24 lines (20 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#Load common automation library
$c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "common.ps1")
Get-OverrideParameters
Read-AXClientConfiguration
Read-AxServerConfiguration
# Run AXBuild.exe utility
$arguments = ' xppcompileall /s={0}' -f $script:aosNumber
$axBuildProcess = Start-Process $script:axBuild -WorkingDirectory $script:serverBinDir -PassThru -ArgumentList $arguments -Verbose
Write-InfoLog $out
Write-InfoLog (" ")
Write-InfoLog (" ")
#do {start-sleep -Milliseconds 5000}
#until ($axBuildProcess.HasExited)
if ($axBuildProcess.WaitForExit(60000*$CompileAllTimeout) -eq $false)
{
$axBuildProcess.Kill()
Throw ("Error: AX compile did not complete within {0} minutes" -f $CompileAllTimeout)
}
Write-InfoLog ("End of CompileAll API: {0}" -f (Get-Date))
#Copy-Item -Path (Join-Path $script:serverLogDir AxCompileAll.html) -Destination (join-path $currentLogFolder AxCompileAll_Pass1.html) -Force -ErrorAction SilentlyContinue