-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunAXBuildAndCIL.ps1
More file actions
18 lines (18 loc) · 1.71 KB
/
Copy pathRunAXBuildAndCIL.ps1
File metadata and controls
18 lines (18 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Run AXBuild.exe utility
$aosNumber = '01'
$script:AOSname = "AOS60`${0}" -f $aosNumber
$script:AxAOSServerName = $env:COMPUTERNAME
$script:currentLogFolder = $MyInvokation.MyCommand.Path
$buildTimeout = 120
$cilTimeout = 120
$serverBinDir = 'C:\Program Files\Microsoft Dynamics AX\60\Server\MAX_DEV\bin'
$axBuild = Join-Path $serverBinDir AXBuild.exe
$arguments = ' xppcompileall /s={0}' -f $aosNumber
$axBuildProcess = Start-Process $script:axBuild -WorkingDirectory $script:serverBinDir -PassThru -ArgumentList $arguments -Verbose
if ($axBuildProcess.WaitForExit(60000*$buildTimeout) -eq $false)
{
$axBuildProcess.Kill()
Throw ("Error: AX compile did not complete within {0} minutes" -f $buildTimeout)
}
$script:clientBinDir = [System.Environment]::ExpandEnvironmentVariables("$clientBinDir")
$script:ax32 = join-path $clientBinDir "ax32.exe"