-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBuildAX.ps1
More file actions
663 lines (595 loc) · 30.3 KB
/
Copy pathBuildAX.ps1
File metadata and controls
663 lines (595 loc) · 30.3 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
# Copyright (c) Microsoft
# All rights reserved.
# Microsoft Limited Public License:
# This license governs use of the accompanying software. If you use the software, you
# accept this license. If you do not accept the license, do not use the software.
# 1. Definitions
# The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
# same meaning here as under U.S. copyright law.
# A "contribution" is the original software, or any additions or changes to the software.
# A "contributor" is any person that distributes its contribution under this license.
# "Licensed patents" are a contributor's patent claims that read directly on its contribution.
# 2. Grant of Rights
# (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
# (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
# 3. Conditions and Limitations
# (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
# (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
# (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
# (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
# (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
# (F) Platform Limitation - The licenses granted in sections 2(A) and 2(B) extend only to the software or derivative works that you create that run on a Microsoft Windows operating system product.
#File version: 1.0.2.0
function Get-BuildVersion
{
if($version -ne $null)
{
$script:CurrentVersion = $version
}
else
{
$script:CurrentVersion = "1.0.0.0"
if ($versionFile -ne $false -and (Test-Path $versionFile) -ne $false)
{
$fileContent = Get-Content $versionFile
foreach ($line in $fileContent)
{
$script:CurrentVersion = $line
}
}
}
Set-NextBuildVersion
}
function Set-NextVersion
{
foreach($ModelToBuild in ((Get-ModelsToBuild).GetEnumerator()) | Where-Object {$_.Folder -ne $null -and $_.Folder -ne ''})
{
Write-InfoLog('ModelToBuild.Folder: {0}' -f $ModelToBuild.Folder)
$filePath = (Join-Path (Join-Path $ApplicationDir $ModelToBuild.Folder) 'Model.xml' )
#$filePath = (Join-Path $ModelToBuild.Folder 'Model.xml')
Write-InfoLog('Model file path: {0}' -f $filePath)
#checkout
if($w -ne $null)
{
$w.PendEdit($filePath)
}
[xml]$x = Get-Content $filePath
$x.ModelManifest.Version = Get-NextVersion($x.ModelManifest.Version)
$x.save($filePath)
}
if($w -ne $null)
{
$pendingChanges = $w.GetPendingChanges();
if ($pendingChanges.count -gt 0)
{
$changesetNumber = $w.CheckIn($pendingChanges, 'Version Updated');
}
}
}
function Get-NextVersion($oldVersion)
{
if($oldVersion -ne $null -and $oldVersion.Trim() -ne '')
{
$m = $oldVersion.split('.')
$m.SetValue([string]([int]($m.GetValue($m.count - 1)) + 1), $m.count - 1)
$version = ""
for ($idx = 0; $idx -lt $m.Count; $idx++) {$version+='{0}.' -f $m.Get($idx)}
$version = $version.Substring(0,$version.Length-1)
}
else
{
$version = $currentVersion
}
$version
}
function Set-NextBuildVersion
{
$m = $currentVersion.split('.')
$m.SetValue([string]([int]($m.GetValue($m.count - 1)) + 1), $m.count - 1)
$private:version = ""
for ($idx = 0; $idx -lt $m.Count; $idx++) {$version+='{0}.' -f $m.Get($idx)}
$version = $version.Substring(0,$version.Length-1)
$version | Out-File $versionFile -Encoding Default
}
#Read the environmentvariables comming from the BuildTemplate and put them in a parameter file to be used if the script is run manual.
function Get-InputVariables ($homePath)
{
$script:AxBuildDir = $homePath
$axbuildError = @()
$RunBuildParmFile = (Join-Path $AxBuildDir "BuildParameters.txt")
if ((Test-Path $RunBuildParmFile) -ne $false)
{
$fileContent = Get-Content $RunBuildParmFile
Write-InfoLog "Input parameters"
foreach ($line in $fileContent)
{
Write-InfoLog $line
$line = $line.split("=")
if($line.Count -eq 2)
{
[System.Environment]::SetEnvironmentVariable($line[0],$line[1])
}
else
{
Write-InfoLog "Bad BuildParameters file content: {0}" -f $line
}
}
}
$script:LocalProject = GetEnvironmentVariable("VCSFilePath")
$script:ApplicationSourceDir = GetEnvironmentVariable("ApplicationSourceDir")
$script:Version = GetEnvironmentVariable("Version")
$script:dropLocation = GetEnvironmentVariable("DropLocation")
$script:AxCompileAll = GetEnvironmentVariable("CompileAll")
$script:CleanupAfterBuild = GetEnvironmentVariable("CleanupAfterBuild")
$script:CompileCIL = GetEnvironmentVariable("CompileCIL")
$script:TFSIntegration = GetEnvironmentVariable("TFSIntegration")
$script:TFSUrl = GetEnvironmentVariable("TFSUrl")
$script:TFSLabelPrefix = GetEnvironmentVariable("TFSLabelPrefix")
$script:TFSWorkspace = GetEnvironmentVariable("TFSWorkspace")
$script:LabelComments = GetEnvironmentVariable("LabelComments")
$script:LogFolder = GetEnvironmentVariable("LogFolder")
$script:SignKey = GetEnvironmentVariable("SignKey")
$script:MsBuildPath = GetEnvironmentVariable("MsBuildDir")
$script:rdlLanguage = GetEnvironmentVariable("RdlLanguage")
$script:NoCleanOnError = GetEnvironmentVariable("NoCleanOnError")
$script:backupModelStoreFolder = GetEnvironmentVariable("BackupModelStoreFolder")
$script:CleanBackupFileName = GetEnvironmentVariable("CleanBackupFileName")
if ($ApplicationSourceDir -ne $null) {$script:dependencyPath= Join-Path $ApplicationSourceDir "Dependencies"}
if ((Test-Path $RunBuildParmFile) -eq $false)
{
$private:buffer = @()
$buffer += "Version="+$Version
$buffer += "VCSFilePath="+$LocalProject
$buffer += "ApplicationSourceDir=" + $ApplicationSourceDir
$buffer += "DropLocation=" + $dropLocation
$buffer += "CompileAll=" + $AxCompileAll
$buffer += "CleanupAfterBuild=" + $CleanupAfterBuild
$buffer += "CompileCIL="+ $CompileCIL
$buffer += "TFSIntegration="+ $TFSIntegration
$buffer += "TFSUrl="+ $TFSUrl
$buffer += "TFSLabelPrefix="+ $TFSLabelPrefix
$buffer += "TFSWorkspace="+ $TFSWorkspace
$buffer += "LabelComments="+ $LabelComments
$buffer += "SignKey="+ $SignKey
$buffer += "MsBuildDir="+ $msBuildPath
$buffer += "RdlLanguage="+ $rdlLanguage
$buffer += "NoCleanOnError="+ $NoCleanOnError
$buffer | Out-File $RunBuildParmFile -Encoding Default
}
Update-InputVariables
}
function Update-InputVariables
{
if($localProject -ne $null -and $ApplicationSourceDir -ne $null) {
$ApplicationSourceDir = $ApplicationSourceDir.TrimEnd('\')
$script:ApplicationDir = $localProject.Replace($ApplicationSourceDir,'')
$script:ApplicationDir = $ApplicationDir.ToUpper().Replace('\DEFINITION\VCSDEF.XML','')
$script:ApplicationDir = join-path $ApplicationSourceDir $applicationdir
}
$script:versionFile = join-path $AxBuildDir 'version.txt'
if($rdlLanguage -eq $null)
{
$script:rdlLanguage = 'EN-US'
}
}
function Validate-InputVariables
{
$axbuildError = @()
if ($ApplicationSourceDir -eq $null) {$axBuildError += "The environment variable %ApplicationSourceDir% is missing."+[char]10}
if ($ApplicationSourceDir -ne $null -and (Test-Path $ApplicationSourceDir) -eq $false) {$axBuildError += "The environment variable %ApplicationSourceDir% : {0} is not a valid path." -f $ApplicationSourceDir+[char]10}
if ($localProject -eq $null) {$axBuildError += "The environment variable %localproject% is missing."+[char]10}
if ($clientBinDir -ne $null) {
if ((Test-Path -Path $clientBinDir) -eq $false) {$axBuildError += "The client bin dir is missing."+[char]10}}
if ($AOSName -eq $null) {{$axBuildError += ("The AX AOS {0} can not be found." -f $axAOS)+[char]10}}
if ($DropLocation -eq $null -or (Test-Path $DropLocation) -ne $true)
{
$axBuildError += "Drop location in not specified or invalid."+[char]10}
if ($MsBuildPath -eq $null -or (Test-Path $MsBuildPath) -ne $true)
{
$axBuildError += "MsBuild.exe path is invalid."+[char]10}
if ((test-path(Join-Path $AxBuildDir 'combinexpos.exe')) -ne $true)
{
$axBuildError += ("Combinexpos.exe is missing from {0}." -f $axBuildDir)+[char]10
}
if ($axBuildError -ne $null)
{
$axbuildError | Out-File (join-path "$currentLogFolder" "AxInputValidationErrors.txt") -Encoding Default
Write-ErrorLog "Parameter validation error. See AxInputValidationErrors.txt for more information."
Write-InfoLog $axbuildError
$axbuildError
}
}
function Create-BuildCompleted
{
$axbuildError = @()
$axbuildError | Out-File (join-path "$dropLocation" "BuildCompleted.txt") -Encoding Default
}
function Scan-InputErrors
{
$retVal = $false
$axbuildError = @()
if((Test-Path (join-path $AxBuildDir "AxInputErrors.txt")) -eq $True)
{
Copy-Item -Path (join-path $AxBuildDir "AxInputErrors.txt") -Destination $currentLogFolder -Force
$axBuildError += "Parameters file is wrong. See AXInputErrors.txt"+[char]10
$retVal = $true
}
if((Test-Path (join-path $AxBuildDir "AxInputValidationErrors.txt")) -eq $True)
{
Copy-Item -Path (join-path $AxBuildDir "AxInputValidationErrors.txt") -Destination $currentLogFolder -Force
$axBuildError += "Some parameters passed are wrong. See AxInputValidationErrors.txt"+[char]10
$retVal = $true
}
if($retVal -eq $true)
{
$axbuildError | Out-File (join-path $dropLocation "BuildErrors.err") -Encoding Default
}
$retVal
}
function Build-AX
{
#Step 1:Sync files
Disable-VCS
if($TFSIntegration -eq "True")
{
try
{
Sync-Files
Set-NextVersion
#Apply-Label
}
finally
{
if($w -ne $null)
{
Write-InfoLog ("Deleting workspace.")
$d= $w.Delete()
}
}
}
else
{
Set-NextVersion
}
if ( $ApplicationDir -eq $null -or (Test-Path $ApplicationDir) -eq $false)
{ Write-TerminatingErrorLog ("Wrong local project setting: {0}" -f $localProject)}
#Step
$script:modelLayerMap = @{}
Create-ModelMap
#Step
Write-InfoLog (" ")
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("****************COMBINE AND EXPORT XPOs**************************")
$models = @()
$modelHash = @{}
foreach($ModelToBuild in ((Get-ModelsToBuild).GetEnumerator()) | Where-Object {$_.Folder -ne $null -and $_.Folder -ne ''})
{
$Model = Get-Item -Path (Join-Path (Join-Path $ApplicationDir $ModelToBuild.Folder) 'Model.xml' )
Get-Model $model
if ($aolCode -eq '' -and $AxLayer -ne '' -and $AxLayer.SubString(0,2).ToUpper() -ne 'US')
{
Write-TerminatingErrorLog ("License code is not available for model: {0}" -f $model.FullName)
}
$modelHash.Add($modelName, $AxLayer)
Combine-Xpos $model.Directory
$ret = Check-CombineXpoError
if ($ret -eq $true)
{
$models += $model
Add-LayerOrder $model $axLayer
}
else
{
Write-TerminatingErrorLog ("Unable to combine xpo for: {0}" -f $model.FullName)
}
}
# Now we've got all the references downloaded to local repo and it's time to install the needed MyGet packages and register them to GAC for AX to build.
Create-PackagesConfig
Install-Packages
Write-InfoLog '------------------------------------------>'
Write-InfoLog ('Models list: {0}' -f $models)
Write-InfoLog '<------------------------------------------'
Clean-Build
# Avoid calling Setup-AXModelStore -NoInstallMode too often
#Step 2
#Set the No install mode after the Clean-Build as we need to override the settings restored by importing the model store file.
#Write-InfoLog ("Calling Set-AXModelStore: {0}" -f (Get-Date))
#Set-AXModelStore -NoInstallMode -Database $sqlModelDatabase -Server $sqlServer -OutVariable out -Verbose
#Write-InfoLog $out
$modelLayerMap = $modelLayerMap.GetEnumerator() | Sort-Object Name
if($modelLayerMap -eq $null)
{
$modelLayerMap = @{}
}
if($modelLayerMap.GetType().Name -eq 'DictionaryEntry')
{
$modelLayerMap = @{ $modelLayerMap.Name = $modelLayerMap.Value}
}
Create-ModelList
Install-DependentBinaries
Import-BuildModels
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("*****************************************************************")
Write-InfoLog (" ")
#Step 9
Write-InfoLog (" ")
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("****************COMPILE AX***************************************")
Compile-Ax
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("*****************************************************************")
Write-InfoLog (" ")
#Step 10
Write-InfoLog (" ")
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("****************COLLECTING BUILD*********************************")
Collect-Build $models
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("*****************************************************************")
Write-InfoLog (" ")
<#if ($NoCleanOnError -ne $true -or (Test-Path (join-path $currentLogFolder 'BuildErrors.err')) -ne $true)
{
#Clean build step 11
if ($CleanupAfterBuild -eq "True")
{
Write-InfoLog (" ")
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("****************CLEANING BUILD***********************************")
Clean-Build
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("*****************************************************************")
Write-InfoLog (" ")
}
}#>
}
$ErrorActionPreference = "SilentlyContinue"
# Capture Initial script path in a script scoped variable as powershell is not smart enough to provide $Myinvocation variable in a function in a references script (i.e., Common.ps1)
$script:startupDir = $MyInvocation.MyCommand.Path
Write-Host ('Invocation command path: {0}' -f $MyInvocation.MyCommand.Path)
$commonps1Path = (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "Common.ps1")
Write-Host ('Common.ps1 path: {0}' -f $commonps1Path)
Write-Host ('Common.ps1 path exists: {0}' -f (Test-Path $commonps1Path))
#Load common automation library
$c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "Common.ps1")
$script:scriptName = 'BUILD'
Write-InfoLog ("CommandPath = {0}" -f $MyInvocation.MyCommand.Path)
try
{
$ErrorActionPreference = "Stop"
#Check-PowerShellVersion
#Step
#Read environment variables comming from the build template (or the parm file)
Get-InputVariables(Split-Path -Parent $MyInvocation.MyCommand.Path)
if($dropLocation -eq $null -or (Test-path $dropLocation) -eq $false)
{
Write-TerminatingErrorLog "Drop location is not valid."
}
Get-BuildVersion
Write-InfoLog ("Build Starting : {0}" -f (Get-Date))
Write-InfoLog ("Creating output directories : {0}" -f (Get-Date))
Create-BuildFolders
}
catch
{
#Write-ErrorLog "Error occured while building."
Write-TerminatingErrorLog 'Error occured while building.'
}
try
{
$script:transcriptStarted = $true
Start-Transcript (join-path $currentLogFolder 'BuildLogs.log')
Get-OverrideParameters
Get-ImportOverrideParameters
#Load the AX PS libary
$x = . (join-path (join-path (Get-Item $SetupRegistryPath).GetValue("InstallDir") "ManagementUtilities") "Microsoft.Dynamics.ManagementUtilities.ps1")
#Step
#Read the AX information from the registry
Read-AXClientConfiguration
Read-AxServerConfiguration
Write-InfoLog ('Printing all variables')
Write-InfoLog (Get-Variable)
#Step
if ((Validate-InputVariables) -eq $null)
{
Register-SQLSnapIn
$script:buildModelStarted = $true
Build-AX
if((Test-Path (join-path $dropLocation 'BuildErrors.err')) -ne $true)
{
Create-BuildCompleted
Write-InfoLog ("Build finished : {0}" -f (Get-Date))
Write-InfoLog ("BUILD SUCCESS")
}
else
{
Write-InfoLog ("Errors occured while building.")
Write-InfoLog ("BUILD FAILED")
}
}
else
{
Write-InfoLog "Parameter validation errors."
}
}
catch
{
Write-ErrorLog ("Error occured while building.")
Write-ErrorLog ($Error[0])
if($buildModelStarted -eq $true)
{
$script:buildModelStarted = $false
try
{
if($NoCleanOnError -ne $true)
{
Write-InfoLog (" ")
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("****************TRYING TO REVERT BUILD***************************")
Clean-Build
Write-InfoLog ("*****************************************************************")
Write-InfoLog ("*****************************************************************")
Write-InfoLog (" ")
}
}
catch
{
Write-ErrorLog ("Failed to revert build.")
Write-ErrorLog ($Error[0])
}
}
$ErrorActionPreference = "SilentlyContinue"
Write-InfoLog ("Build finished : {0}" -f (Get-Date))
Write-InfoLog ("BUILD FAILED")
}
finally
{
Copy-Item -Path (Join-Path $clientLogDir *.*) -Destination (join-path $currentLogFolder "DetailedLogs") -Force -ErrorAction SilentlyContinue
Enable-VCS
if($transcriptStarted -eq $true)
{Stop-Transcript}
}
# SIG # Begin signature block
# MIIauQYJKoZIhvcNAQcCoIIaqjCCGqYCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUDsVHxG0FLZ4JM/+buPptqHHS
# 8JegghWCMIIEwzCCA6ugAwIBAgITMwAAADaeewBVssNdLAAAAAAANjANBgkqhkiG
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTMwMzI3MjAwODI4
# WhcNMTQwNjI3MjAwODI4WjCBszELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp
# bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw
# b3JhdGlvbjENMAsGA1UECxMETU9QUjEnMCUGA1UECxMebkNpcGhlciBEU0UgRVNO
# OkJCRUMtMzBDQS0yREJFMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT
# ZXJ2aWNlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvBmYmWSq9tq9
# TdEuQs9m7Ncr2HJUyU3z+i4JBkTQEzAtoukQKnUbP1Zcd7f66bz41en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