-
Notifications
You must be signed in to change notification settings - Fork 2
/
port-prod.xml
4674 lines (4050 loc) · 180 KB
/
port-prod.xml
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
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF8"?>
<Export generator="Cache" version="25">
<Class name="Port.AutoInstall">
<Super>%Projection.AbstractProjection</Super>
<TimeCreated>64463,49658.530976</TimeCreated>
<Projection name="Reference">
<Type>Port.AutoInstall</Type>
</Projection>
<Method name="CreateProjection">
<ClassMethod>1</ClassMethod>
<FormalSpec><![CDATA[classname:%String,¶meters:%String,modified:%String,qstruct]]></FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[ quit ##class(Installer).Install()
]]></Implementation>
</Method>
<Method name="RemoveProjection">
<ClassMethod>1</ClassMethod>
<FormalSpec><![CDATA[classname:%String,¶meters:%String,recompile:%Boolean,modified:%String,qstruct]]></FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[ quit ##class(Installer).Uninstall()
]]></Implementation>
</Method>
</Class>
<Class name="Port.Configuration">
<IncludeCode>portutils</IncludeCode>
<Super>%SYSTEM.Help</Super>
<TimeCreated>64306,34528.990495</TimeCreated>
<Method name="SetLogLevel">
<Description>
Sets the log level verbosity used to display the info. Ranging from 1 to 2, greater provides more detailed info.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>logLevel:%Integer</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
if logLevel > 0 && (logLevel < 3) {
set ^Port.Configuration("general.logLevel") = logLevel
return $$$OK
}
return $$$PERROR($$$LogLevelIsOutOfRange, "1, 2")
]]></Implementation>
</Method>
<Method name="GetLogLevel">
<Description>
Gets the current configured log level.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("general.logLevel"), 0)
]]></Implementation>
</Method>
<Method name="SetPrimaryWorkspace">
<Description>
Sets the primary path where the project should be exported. This can be overwritten by SetCustomWorkspace.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>newWorkspace:%String=""</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ set ^Port.Configuration("source.path") = $select(newWorkspace = "" : "/CacheProjects/{NAMESPACE}/{PROJECT}", 1: newWorkspace)
]]></Implementation>
</Method>
<Method name="GetWorkspace">
<Description>
Resolves any placeholders and gets the precise path for the specified project. This priorizes the custom workspace and falls back to the primary.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>projectName:%String=$get(^||Port.Project)</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set customWorkspace = ..GetCustomWorkspace(projectName)
if customWorkspace '= "" return ..RewritePlaceHolders(customWorkspace, projectName,$lb("{NAMESPACE}","{PROJECT}","{USERNAME}"))
return ..RewritePlaceHolders($get(^Port.Configuration("source.path")), projectName, $lb("{NAMESPACE}","{INSTALLDIR}","{PROJECT}","{USERNAME}"))
]]></Implementation>
</Method>
<Method name="EnableAutoExportXML">
<Description>
Generates and export a XML project whenever a item is saved. This is useful for keeping the project XML always up-to-date.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Boolean</ReturnType>
<Implementation><![CDATA[ set ^Port.Configuration("xml.autoexport") = 1
]]></Implementation>
</Method>
<Method name="DisableAutoExportXML">
<Description>
Disables the generation of the project XML file.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Boolean</ReturnType>
<Implementation><![CDATA[ set ^Port.Configuration("xml.autoexport") = 0
]]></Implementation>
</Method>
<Method name="IsAutoExportXMLEnabled">
<Description>
Returns if project XML generation is enabled.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[ return ($get(^Port.Configuration("xml.autoexport")) = 1)
]]></Implementation>
</Method>
<Method name="SetTestPath">
<Description>
Relative to it's project. Sets the path where test cases should be exported.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>newPath:%String=""</FormalSpec>
<Implementation><![CDATA[ set ^Port.Configuration("test.path") = $select(newPath = "" : "tests/cls", 1: newPath)
]]></Implementation>
</Method>
<Method name="GetTestPath">
<Description>
Retrives the resolved path where tests are being exported.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set isUsingUDL = (..GetTestFormat() = "UDL")
if isUsingUDL return "cls"
return ..RewritePlaceHolders($get(^Port.Configuration("test.path")),,$lb("{NAMESPACE}","{PROJECT}","{USERNAME}"))
]]></Implementation>
</Method>
<Method name="EnableTestOnDemand">
<Description>
Allows Port to run matching test cases whenever the match is compiled.</Description>
<ClassMethod>1</ClassMethod>
<Implementation><![CDATA[ set ^Port.Configuration("test.ondemand") = 1
]]></Implementation>
</Method>
<Method name="DisableTestOnDemand">
<Description>
Prevents Port from running test cases automatically.</Description>
<ClassMethod>1</ClassMethod>
<Implementation><![CDATA[ set ^Port.Configuration("test.ondemand") = 0
]]></Implementation>
</Method>
<Method name="IsTestOnDemandEnabled">
<Description>
Retrieves if Port is configured to run test cases automatically.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ return ($get(^Port.Configuration("test.ondemand")) = 1)
]]></Implementation>
</Method>
<Method name="SetTestClassPrefix">
<Description>
Sets the prefix used to match against the implementation classe.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>newPrefix:%String=""</FormalSpec>
<Implementation><![CDATA[ set ^Port.Configuration("test.prefix") = $select(newPrefix = "" : "UnitTest", 1: newPrefix)
]]></Implementation>
</Method>
<Method name="GetTestClassPrefix">
<Description>
Gets the associated test prefix.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("test.prefix"))
]]></Implementation>
</Method>
<Method name="SetCustomWorkspace">
<Description>
Defines a custom workspace, a path where a single project should be exported. This configuration ovewrites the primary workspace.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>projectName:%String,path:%String=..GetWorkspace()</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set ^Port.Configuration("workspace.project", projectName) = path
return $$$OK
]]></Implementation>
</Method>
<Method name="GetCustomWorkspace">
<Description>
Retrieves the resolved workspace path for the provided project. Returns empty if there's none.</Description>
<Internal>1</Internal>
<ClassMethod>1</ClassMethod>
<FormalSpec>projectName:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
set customWorkspace = $get(^Port.Configuration("workspace.project", projectName))
return ..RewritePlaceHolders(customWorkspace, projectName, $lb("{NAMESPACE}","{INSTALLDIR}","{PROJECT}","{USERNAME}"))
]]></Implementation>
</Method>
<Method name="HasCustomWorkspace">
<Description>
Returns if the project has a custom workspace.</Description>
<Internal>1</Internal>
<ClassMethod>1</ClassMethod>
<FormalSpec>projectName:%String</FormalSpec>
<ReturnType>%Boolean</ReturnType>
<Implementation><![CDATA[
return (..GetCustomWorkspace(projectName) '= "")
]]></Implementation>
</Method>
<Method name="RemoveCustomWorkspace">
<Description>
Removes the custom workspace from the project provided, which also resets it back to using the primary.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>projectName:%String</FormalSpec>
<Implementation><![CDATA[ kill ^Port.Configuration("workspace.project", projectName)
]]></Implementation>
</Method>
<Method name="Uninstall">
<Description>
Remove all Port configurations. This will not erase project logs.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
kill ^Port.Configuration
return $$$OK
]]></Implementation>
</Method>
<Method name="RegisterExtendedHooks">
<Description>
Defines a class used to handle source control hooks after Port execution.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>implementer:%String</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
if implementer = "" kill ^Port.Configuration("source.hooks.custom")
if '##class(%Dictionary.CompiledClass).%ExistsId(implementer) return $$$ERROR($$$ClassDoesNotExist, implementer)
set ^Port.Configuration("source.hooks.custom") = implementer
return $$$OK
]]></Implementation>
</Method>
<Method name="GetInternalCharset">
<Description>
Get the charset to be used when saving a document matching the provided extension.
Defaults to "UTF8".</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>extension:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.internal", $$$ucase(extension)), "UTF8")
]]></Implementation>
</Method>
<Method name="GetExternalCharset">
<Description>
Get the charset to be used when retrieving/exporting a file matching the provided extension.
Defaults to "UTF8".</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>extension:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("source.charset.external", $$$ucase(extension)), "UTF8")
]]></Implementation>
</Method>
<Method name="SetInternalCharset">
<Description>
Set the character set to be used when saving a document to Caché with the provided extension.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>extension:%String,charset:%String</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set ^Port.Configuration("source.charset.internal", $$$ucase(extension)) = charset
return $$$OK
]]></Implementation>
</Method>
<Method name="SetExternalCharset">
<Description>
Set the character set to be used when retrieving a document from Caché with the provided extension.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>extension:%String,charset:%String</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set ^Port.Configuration("source.charset.external", $$$ucase(extension)) = charset
return $$$OK
]]></Implementation>
</Method>
<Method name="GetExtendedHooksImplementer">
<ClassMethod>1</ClassMethod>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("source.hooks.custom"))
]]></Implementation>
</Method>
<Method name="SetTestFormat">
<Description>
Defines which format the Port should for running unit test. When "XML" is selected, Port will export test classes as xml.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>type:%String</FormalSpec>
<Implementation><![CDATA[
set type = $$$ucase(type)
if '$lf($lb("UDL", "XML"), type) quit
set ^Port.Configuration("test.format") = type
]]></Implementation>
</Method>
<Method name="GetTestFormat">
<Description>
Returns the selected test format. It can be "UDL" or "XML".</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>type:%String</FormalSpec>
<Implementation><![CDATA[ return $get(^Port.Configuration("test.format"), "XML")
]]></Implementation>
</Method>
<Method name="RewritePlaceHolders">
<Internal>1</Internal>
<ClassMethod>1</ClassMethod>
<FormalSpec>basePath:%String,projectName:%String=$get(^||Port.Project),allowedPlaceholders="*",params...:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
if '$data(params) set params = ""
set translatedPath = basePath
#define RewriteIfPathContains(%expression, %replacement) if ($lv(allowedPlaceholders) && $lf(allowedPlaceholders, %expression)) || (allowedPlaceholders = "*") set translatedPath = $select(translatedPath [ %expression : $replace(translatedPath, %expression, %replacement), 1: translatedPath)
set installDirectory = $System.Util.InstallDirectory()
set installDirectory = $extract(installDirectory, 1, $length(installDirectory) - 1)
$$$RewriteIfPathContains("{NAMESPACE}", $namespace)
$$$RewriteIfPathContains("{INSTALLDIR}", installDirectory)
$$$RewriteIfPathContains("{USERNAME}", $username)
$$$RewriteIfPathContains("{EXPORTPATH}", ..GetWorkspace())
$$$RewriteIfPathContains("{FULLEXPORTPATH}", ##class(%File).NormalizeFilename(..GetWorkspace()))
$$$RewriteIfPathContains("{SLASH}", $select($$$isWINDOWS: "\", 1: "/"))
$$$RewriteIfPathContains("{PROJECT}", projectName)
if params {
for i=1:1:params $$$RewriteIfPathContains("{P"_i_"}", params(i))
}
return translatedPath
]]></Implementation>
</Method>
<Method name="AllowEmptyFileName">
<Description>
Enable or disable enqueing files that follow the format ".name". When disabled
Port will ignore these files altogether. Useful if you don't want to import directories
that there supposed to be internal or hidden.</Description>
<ClassMethod>1</ClassMethod>
<FormalSpec>value:%Integer</FormalSpec>
<Implementation><![CDATA[
if '$lf($lb(0,1), value) quit
set ^Port.Configuration("files.allowEmptyName") = value
]]></Implementation>
</Method>
<Method name="IsAllowEmptyFileNameEnabled">
<Description>
Returns if Port is allowed to enqueue files on which the name follows the format ".name".</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Boolean</ReturnType>
<Implementation><![CDATA[ return $get(^Port.Configuration("files.allowEmptyName"), 0)
]]></Implementation>
</Method>
</Class>
<Class name="Port.Installer">
<Abstract>1</Abstract>
<IncludeCode>portutils</IncludeCode>
<TimeCreated>64306,34529.365286</TimeCreated>
<XData name="LocaleEN">
<XMLNamespace>https://github.com/rfns/port</XMLNamespace>
<Data><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<MsgFile Language="en">
<MsgDomain Domain="Port Errors">
<Message Id="-100" Name="InvalidPhysicalPath">The provided physical path '%1' is not part of the static files directory.</Message>
<Message Id="-101" Name="NamespaceDoesntHaveAppWithPath">There is not an application with a physical path for the namespace %1.</Message>
<Message Id="-102" Name="CannotCreateDirectory">Could not create the directory %1.</Message>
<Message Id="-103" Name="CannotUseRelativePath">Cannot use a relative path, an absolute path must be provided.</Message>
<Message Id="-104" Name="UnableToCopySource">Could not copy the file from %1 to %2.</Message>
<Message Id="-105" Name="UnableToExportInvalidItem">Could not export the item %1 because it does not exist.</Message>
<Message Id="-106" Name="ErrorsWhileImporting">There were errors while export the project %1.</Message>
<Message Id="-107" Name="AmbiguousPartialToWorkspace">The obtained partial path %1 is ambiguous to this project path. If you want to export the project itself, then use the 'Import' method.</Message>
<Message Id="-108" Name="SupressedAttemptToExportFromOutside">Cannot import a file that is outside the project workspace.</Message>
<Message Id="-109" Name="UnableToRemoveDirectory">Could not remove the directory %1.</Message>
<Message Id="-110" Name="UnableToDescribeItem">Could not describe the item %1 due to a violation regarding the expected extension: this item should %2</Message>
<Message Id="-111" Name="PortIsNotInstalled">Port is not installed on namespace %1.</Message>
<Message Id="-112" Name="NoTestSuitesWereFound">No tests suites were found for this project.</Message>
<Message Id="-113" Name="ExportingProjectNotFound">The selected %1 project does not exist.</Message>
<Message Id="-114" Name="ErrorsWhileImportingType">There were errors while importing items type of %1.</Message>
<Message Id="-115" Name="LogLevelIsOutOfRange">The provided log level %1 is out of range. Parameter must be one of: %2.</Message>
<Message Id="-116" Name="CouldNotDetermineWorkspace">Could not determine the correct workspace from the provided path.</Message>
<Message Id="-117" Name="CannotSaveConflictingItems">Cannot save items that belongs to other projects. Please remove '%1' from the projects listed below if you want to save it into '%3': %2</Message>
<Message Id="-118" Name="FailedWhileRunningExtendedHook">Failed while running extended hook '%1'.</Message>
<Message Id="-119" Name="NoCompatibleApplicationForPublicFile">There is no compatible web application for the public file located at %1.</Message>
</MsgDomain>
<MsgDomain Domain="Port Log Messages">
<Message Id="-200" Name="BackupStart">Starting backup ...</Message>
<Message Id="-201" Name="BackupAlert">DO NOT INTERRUPT THIS PROCESS.</Message>
<Message Id="-202" Name="BackupMirror">Mirroring the web application to a temporary directory ...</Message>
<Message Id="-203" Name="RemovingBackupMirror">Removing the temporary directory.</Message>
<Message Id="-300" Name="NoItemsToExport">There are no items to export. The operation has been aborted.</Message>
<Message Id="-301" Name="ExportingProject">Exporting the project %1.</Message>
<Message Id="-302" Name="SourceExportedToPath">The source code has been exported to the path %1.</Message>
<Message Id="-303" Name="ExportingType">Exporting %1 %2 ...</Message>
<Message Id="-304" Name="NewWorkspaceDetected">A new workspace has been detected for %1. The project will be exported as a whole.</Message>
<Message Id="-400" Name="SynchronizingProject">Synchronizing the project %1.</Message>
<Message Id="-401" Name="CheckingExtraneousItems">Checking the project for extraneous items ...</Message>
<Message Id="-402" Name="TotalExtraneousItems">Total extraneous items found: %1.</Message>
<Message Id="-403" Name="NoExtraneousItems">No extraneous items were found.</Message>
<Message Id="-404" Name="RemovingFile">Removing %1 (file).</Message>
<Message Id="-405" Name="RemovingDirectory">Removing %1 (directory).</Message>
<Message Id="-406" Name="TotalExtraneousItemsRemoved">Total of extraneous items removed: %1</Message>
<Message Id="-500" Name="Done"> done.</Message>
<Message Id="-501" Name="DoneWithErrors"> done, but with errors.</Message>
<Message Id="-501" Name="Failed"> failed.</Message>
<Message Id="-502" Name="AllDone">Finished with success.</Message>
<Message Id="-503" Name="UpToDate"> is up-to-date.</Message>
<Message Id="-504" Name="OvewriteWithExtension"> end with the %1 extension.</Message>
<Message Id="-600" Name="ImportingType">Importing %1 %2 ...</Message>
<Message Id="-601" Name="EnqueingType">Enqueueing the selected %1 to be imported.</Message>
<Message Id="-602" Name="NothingToImport">Nothing to import has been found.</Message>
<Message Id="-603" Name="ImportingProject">Importing the project %1.</Message>
<Message Id="-604" Name="EnqueueingItems">Enqueing items to be imported ...</Message>
<Message Id="-605" Name="TotalItemsToImport">Total of items to import: %1.</Message>
<Message Id="-606" Name="NoPendingItemsToImport">No items to import were found.</Message>
<Message Id="-607" Name="NewProject">The project %1 does not exist yet and will be created.</Message>
<Message Id="-608" Name="FatalErrorAlert">FATAL: The following errors prevented the project from being imported:</Message>
<Message Id="-609" Name="FatalRollbackAlert">All changes will be discarded on the next steps.</Message>
<Message Id="-610" Name="FatalProjectIntegrityRiskWarning">WARNING! DO NOT INTERRUPT THE PROCESS TO AVOID COMPROMISING THE PROJECT INTEGRITY!</Message>
<Message Id="-611" Name="FatalRollingBackTransaction">Discarding the pending transaction ...</Message>
<Message Id="-612" Name="FatalApplyingBackup">Applying the backup to revert the web application back to its initial state.</Message>
<Message Id="-613" Name="FatalFailedToRestoreBackup">ERROR: Could not apply the backup entirely due to a system error. The backup will be kept to be applied manually.</Message>
<Message Id="-614" Name="ProjectSaved">The project %1 has been saved with %2 items.</Message>
<Message Id="-700" Name="CannotUseDefault">The usage of 'Default' named projects is prohibited. If you want use this project, you must provide another name by using File->Save As.</Message>
<Message Id="-701" Name="CannotUseDefault2">All active hooks are now disabled.</Message>
<Message Id="-800" Name="ClassType">class</Message>
<Message Id="-801" Name="ProjectType">project</Message>
<Message Id="-802" Name="RoutineType">routine</Message>
<Message Id="-803" Name="FileType">file</Message>
<Message Id="-804" Name="DirectoryType">diretório</Message>
<Message Id="-805" Name="MACGroupType">macro routines</Message>
<Message Id="-806" Name="INCGroupType">include files</Message>
<Message Id="-807" Name="INTGroupType">intermediate routines</Message>
<Message Id="-808" Name="BASGroupType">Basic routines</Message>
<Message Id="-809" Name="MVBGroupType">MV Basic routines</Message>
<Message Id="-810" Name="MVIGroupType">MVI routines</Message>
<Message Id="-811" Name="DFIGroupType">DFI files</Message>
<Message Id="-812" Name="CLSGroupType">classes</Message>
<Message Id="-813" Name="FileGroupType">files</Message>
<Message Id="-900" Name="ExportingXML">Exporting the project %1 to XML ...</Message>
<Message Id="-901" Name="XMLExportedTo">%1 project XML exported to %2.</Message>
<Message Id="-902" Name="ExportingTestClassToXML">Exporting test class %1 ...</Message>
<Message Id="-1000" Name="ConflictingItemDetected">CAUTION! Detected the usage of the item %1 on the following projects: %2.</Message>
<Message Id="-1001" Name="ConflictingItemDetected2">It's extremely recommended to keep the item exclusive to a single project!</Message>
<Message Id="-1100" Name="RunningCustomHook">Executing hook extension %1 from the class %2 ...</Message>
<Message Id="-1101" Name="HookReturnedOK">%1 returned without errors.</Message>
<Message Id="-1102" Name="HookReturnedError">Failed while executing %1 due to the following reason: %2.</Message>
</MsgDomain>
<MsgDomain Domain="Port Menu Labels">
<Message Id="-5000" Name="MLExport">Export</Message>
<Message Id="-5001" Name="MLExportToXML">Export to XML</Message>
<Message Id="-5002" Name="MLExportTests">Export tests</Message>
<Message Id="-5003" Name="MLRemoveClasses">Remove classes</Message>
<Message Id="-5004" Name="MLRemoveFiles">Remove files</Message>
<Message Id="-5005" Name="MLRemoveRoutines">Remove routines</Message>
<Message Id="-5006" Name="MLScanAndFix">Scan and fix</Message>
<Message Id="-5007" Name="MLRunTests">Run tests</Message>
<Message Id="-5008" Name="MLImport">Import</Message>
<Message Id="-5009" Name="MLForceExport">Export (forced)</Message>
<Message Id="-5010" Name="MLForceImport">Import (forced)</Message>
</MsgDomain>
<MsgDomain Domain="Port Context Menu Labels">
<Message Id="-6000" Name="CMLExportActive">Export from here</Message>
<Message Id="-6001" Name="CMLImportActive">Import from here</Message>
<Message Id="-6002" Name="CMLRunActiveTest">Run test</Message>
</MsgDomain>
<MsgDomain Domain="Port Configuration Wizard">
<Message Id="-7000" Name="PCWWelcome">Welcome to the Port configuration wizard.</Message>
<Message Id="-7001" Name="PCWInvalidChoice">Invalid choice.</Message>
<Message Id="-7002" Name="PCWChoiceQuestion">What do you want to do? (type the number)</Message>
<Message Id="-7003" Name="PCWChoicePrompt">Your choice: </Message>
<Message Id="-7004" Name="PCWAborted">Aborted.</Message>
<Message Id="-7005" Name="PCWToggleEnabled">ENABLED</Message>
<Message Id="-7006" Name="PCWToggleDisabled">DISABLED</Message>
<Message Id="-7007" Name="PCWBye">Bye.</Message>
<Message Id="-7100" Name="PCWManageWorkspaceChoice">1. Manage workspaces.</Message>
<Message Id="-7101" Name="PCWManageWorkspaceDescription">Manages workspaces that will contain the exported source code.</Message>
<Message Id="-7110" Name="PCWManageWorkspaceChoice1">1. Change primary workspace.</Message>
<Message Id="-7111" Name="PCWManageWorkspaceChoice1Description">Configures the primary workspace that will be used to export your source code.</Message>
<Message Id="-7112" Name="PCWManageWorkspaceChoice1StatusCurrent">The current primary workspace is %1.</Message>
<Message Id="-7113" Name="PCWManageWorkspaceChoice1StatusNow">The primary workspace is now set to %1.</Message>
<Message Id="-7120" Name="PCWManageWorkspaceChoice2">2. Manage existing workspaces.</Message>
<Message Id="-7121" Name="PCWManageWorkspaceChoice2Description">Manages workspaces associated to projects.</Message>
<Message Id="-7122" Name="PCWManageWorkspaceChoice2Description2">Projects named here will not use the primary workspace definition.</Message>
<Message Id="-7123" Name="PCWManageWorkspaceChoice2Prompt">Type the name of the project (or leave it empty to abort):</Message>
<Message Id="-7124" Name="PCWManageWorkspaceChoice2Warning">WARNING: The project %1 doesn't exist yet."</Message>
<Message Id="-7125" Name="PCWManageWorkspaceChoice2StatusCurrent">Current workspace for this project is: %1.</Message>
<Message Id="-7126" Name="PCWManageWorkspaceChoice2CurrentWorskpaceWarn">You will be asked for a new workspace now.</Message>
<Message Id="-7127" Name="PCWManageWorkspaceChoice2Prompt2">Type the workspace path (or leave it empty to abort):</Message>
<Message Id="-7128" Name="PCWManageWorkspaceChoice2StatusNow">The project %1 is now configured to be exported using the following path: %2.</Message>
<Message Id="-7200" Name="PCWManageChangeTestSettingsChoice">2. Change test settings.</Message>
<Message Id="-7201" Name="PCWManageChangeTestSettingsDescription">Configures settings related to the Studio test integration.</Message>
<Message Id="-7210" Name="PCWManageChangeTestSettingsChoice1">1. Enable or disable test on demand.</Message>
<Message Id="-7211" Name="PCWManageChangeTestSettingsChoice1Description">When this settings is enabled, Port will try to match the test class prefix and run the related test.</Message>
<Message Id="-7212" Name="PCWManageChangeTestSettingsChoice1Choice1">1. Enable test on demand.</Message>
<Message Id="-7213" Name="PCWManageChangeTestSettingsChoice1Choice2">2. Disable test on demand.</Message>
<Message Id="-7214" Name="PCWManageChangeTestSettingsChoice1StatusCurrent">Test on demand is currently %1.</Message>
<Message Id="-7220" Name="PCWManageChangeTestSettingsChoice2">2. Define a new test class prefix.</Message>
<Message Id="-7221" Name="PCWManageChangeTestSettingsChoice2Description">A test class prefix is required to inform Port which package should be considered as a test package.</Message>
<Message Id="-7222" Name="PCWManageChangeTestSettingsChoice2Description2">Port uses this prefix when trying to find an equivalent implementation class.</Message>
<Message Id="-7223" Name="PCWManageChangeTestSettingsChoice2Description3">Ex: UnitTest.MyPackage.MyClass -> MyPackage.MyClass.</Message>
<Message Id="-7224" Name="PCWManageChangeTestSettingsChoice2Prompt">Please type the prefix below. Note that prefixes can also be composed. Ex: Package.UnitTest.</Message>
<Message Id="-7225" Name="PCWManageChangeTestSettingsChoice2StatusNow">The prefix is now set to: %1.</Message>
<Message Id="-7230" Name="PCWManageChangeTestSettingsChoice3">3. Define the path where unit test classes should exported (XML).</Message>
<Message Id="-7231" Name="PCWManageChangeTestSettingsChoice3Description">Defines the path where the each test classes should be exported.</Message>
<Message Id="-7232" Name="PCWManageChangeTestSettingsChoice3StatusNow">"The test path is now set to: %1.</Message>
<Message Id="-7300" Name="PCWToggleAutoExportChoice">3. Toggle project XML auto-export.</Message>
<Message Id="-7301" Name="PCWToggleAutoExportDescription">Exports a XML file from project when a document is saved.</Message>
<Message Id="-7302" Name="PCWToggleAutoExportChoice1StatusCurrent">Auto-export XML is currently %1.</Message>
<Message Id="-7303" Name="PCWToggleAutoExportChoice1StatusNow">Auto-export XML is now %1.</Message>
<Message Id="-7310" Name="PCWToggleAutoExportChoice1">1. Enable project XML auto-export.</Message>
<Message Id="-7320" Name="PCWToggleAutoExportChoice2">2. Disable project XML auto-export.</Message>
<Message Id="-7400" Name="PCWSetLogLevelChoice">4. Set log level.</Message>
<Message Id="-7401" Name="PCWSetLogLevelDescription">Specifies the log verbosity level when displaying operations.</Message>
<Message Id="-7402" Name="PCWSetLogLevelStatusCurrent">Log verbosity level is currently: %1.</Message>
<Message Id="-7403" Name="PCWSetLogLevelStatusNow">Log verbosity level is now: %1.</Message>
<Message Id="-7404" Name="PCWSetLogLevelStatusPrompt">Please set the log verbosity level (type the number): </Message>
<Message Id="-7410" Name="PCWSetLogLevelStatusChoice1">1. Level 1: Displays item enqueieing, import categories, backup notifications, repository status and error messages.</Message>
<Message Id="-7420" Name="PCWSetLogLevelStatusChoice2">2. Level 2: Includes all verbosity from Level 1 plus detailed logging about atomical operations.</Message>
<Message Id="-7600" Name="PCWExit">5. Exit.</Message>
<Message Id="-7970" Name="PCWPlaceholdersAnnounce">You can use the following specific placeholders:</Message>
<Message Id="-7971" Name="PCWPlaceholdersProject">{PROJECT} - The active project name.</Message>
<Message Id="-7972" Name="PCWPlaceholdersNamespace">{NAMESPACE} - The active namespace name.</Message>
<Message Id="-7973" Name="PCWPlaceholdersUsername">{USERNAME} - The active user name.</Message>
<Message Id="-7974" Name="PCWPlaceholdersInstallDir">{INSTALLDIR} - The Caché installation directory.</Message>
<Message Id="-7980" Name="PCWPathRelative">Please type the RELATIVE path to be used when exporting your test files. Paths should be relative to the exported project root. (Or leave it empty to restore the default)</Message>
<Message Id="-7981" Name="PCWPathAbsolute">Please type the ABSOLUTE path to be used when exporting your source files (Or leave it empty to restore the default)</Message>
<Message Id="-7982" Name="PCWPathOSSchemes">You can use both: *NIX or Windows schemes.</Message>
<Message Id="-7983" Name="PCWPathDefault">Default is:</Message>
<Message Id="-7984" Name="PCWPathCurrent">Current is:</Message>
<Message Id="-7985" Name="PCWPathNew">New: </Message>
<Message Id="-7999" Name="PCWGoBackChoice">%1. Go back.</Message>
</MsgDomain>
</MsgFile>
]]></Data>
</XData>
<XData name="LocalePTBR">
<XMLNamespace>https://github.com/rnfs/port</XMLNamespace>
<Data><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<MsgFile Language="pt-br">
<MsgDomain Domain="Port Errors">
<Message Id="-100" Name="InvalidPhysicalPath">O caminho físico '%1' fornecido não pertence ao diretório de arquivos estáticos.</Message>
<Message Id="-101" Name="NamespaceDoesntHaveAppWithPath">Não existe uma aplicação com caminho físico para o namespace %1.</Message>
<Message Id="-102" Name="CannotCreateDirectory">Não foi possível criar o diretório %1.</Message>
<Message Id="-103" Name="CannotUseRelativePath">Não é possível utilizar um caminho relativo, o caminho precisa estar completo.</Message>
<Message Id="-104" Name="UnableToCopySource">Não foi possível copiar o arquivo de %1 para %2.</Message>
<Message Id="-105" Name="UnableToExportInvalidItem">Não foi possível exportar o item %1 pois ele não existe.</Message>
<Message Id="-106" Name="ErrorsWhileImporting">Houveram erros ao importar %1.</Message>
<Message Id="-107" Name="AmbiguousPartialToWorkspace">O caminho parcial %1 obtido é ambíguo ao caminho deste projeto. Se você deseja exportar o projeto, utilize o método 'Import'.</Message>
<Message Id="-108" Name="SupressedAttemptToExportFromOutside">Não é possível importar um arquivo que esteja fora do espaço de trabalho deste projeto.</Message>
<Message Id="-109" Name="UnableToRemoveDirectory">Não foi possível remover o diretório %1.</Message>
<Message Id="-110" Name="UnableToDescribeItem">Não foi possível descrever o item o %1 devido à uma violação no extensão esperada: este item deve %2</Message>
<Message Id="-111" Name="PortIsNotInstalled">Port não está instalado no namespace %1.</Message>
<Message Id="-112" Name="NoTestSuitesWereFound">Não foram encontradas suítes de teste para este projeto.</Message>
<Message Id="-113" Name="ExportingProjectNotFound">O projeto %1 selecionado para ser exportado não existe.</Message>
<Message Id="-114" Name="ErrorsWhileImportingType">Houveram errors ao importar itens do tipo %1.</Message>
<Message Id="-115" Name="LogLevelIsOutOfRange">O nível de log fornecido está fora da faixa permitida. O parâmetro deve ser um destes: %2.</Message>
<Message Id="-116" Name="CouldNotDetermineWorkspace">Não foi possível determinar o espaço de trabalho correto a patir do caminho fornecido.</Message>
<Message Id="-117" Name="CannotSaveConflictingItems">Não é possível salvar itens que pertençam a outros projetos. Por favor remova o item %1 dos projetos abaixo se você deseja salvá-lo em '%3': %2</Message>
<Message Id="-118" Name="FailedWhileRunningExtendedHook">Falha ao rodar extensão do evento '%1'.</Message>
<Message Id="-119" Name="NoCompatibleApplicationForPublicFile">Não existe uma aplicação web compatível com o arquivo público localizado em %1.</Message>
</MsgDomain>
<MsgDomain Domain="Port Log Messages">
<Message Id="-200" Name="BackupStart">Iniciando backup...</Message>
<Message Id="-201" Name="BackupAlert">NÃO INTERROMPA ESTE PROCESSO.</Message>
<Message Id="-202" Name="BackupMirror">Espelhando a estrutura da aplicação web para um diretório temporário ...</Message>
<Message Id="-203" Name="RemovingBackupMirror">Removendo o diretório temporário.</Message>
<Message Id="-300" Name="NoItemsToExport">Não há itens para serem exportados. A operação foi abortada.</Message>
<Message Id="-301" Name="ExportingProject">Exportando o projeto %1.</Message>
<Message Id="-302" Name="SourceExportedToPath">O código-fonte foi exportado para o caminho %1.</Message>
<Message Id="-303" Name="ExportingType">Exportando %1 %2 ...</Message>
<Message Id="-304" Name="NewWorkspaceDetected">Um novo espaço de trabalho foi detectado para %1. O projeto será exportado como um todo.</Message>
<Message Id="-400" Name="SynchronizingProject">Sincronizando o projeto %1.</Message>
<Message Id="-401" Name="CheckingExtraneousItems">Verificando o projeto em busca de itens desconhecidos ... </Message>
<Message Id="-402" Name="TotalExtraneousItems">Total de items desconhecidos encontrados: %1.</Message>
<Message Id="-403" Name="NoExtraneousItems">Não há itens para eliminar.</Message>
<Message Id="-404" Name="RemovingFile">Removendo %1 (arquivo).</Message>
<Message Id="-405" Name="RemovingDirectory">Removendo %1 (diretório).</Message>
<Message Id="-406" Name="TotalExtraneousItemsRemoved">Total de itens desconhecidos removidos: %1.</Message>
<Message Id="-500" Name="Done"> feito.</Message>
<Message Id="-501" Name="DoneWithErrors"> feito, mas com erros.</Message>
<Message Id="-501" Name="Failed"> falhou.</Message>
<Message Id="-502" Name="AllDone">Terminado com sucesso.</Message>
<Message Id="-503" Name="UpToDate"> o item já está atualizado.</Message>
<Message Id="-504" Name="OvewriteWithExtension">terminar com a extensão %1.</Message>
<Message Id="-600" Name="ImportingType">Importando %1 %2 ...</Message>
<Message Id="-601" Name="EnqueingType">Enfileirando o %1 escolhido para ser importado ...</Message>
<Message Id="-602" Name="NothingToImport">Nada para importar foi encontrado.</Message>
<Message Id="-603" Name="ImportingProject">Importando o projeto %1.</Message>
<Message Id="-604" Name="EnqueueingItems">Enfilerando itens para serem importados.</Message>
<Message Id="-605" Name="TotalItemsToImport">Total de itens para importar: %1.</Message>
<Message Id="-606" Name="NoPendingItemsToImport">Não há itens para serem importados.</Message>
<Message Id="-607" Name="NewProject">O projeto %1 ainda não existe e será criado a seguir.</Message>
<Message Id="-608" Name="FatalErrorAlert">FATAL: O seguintes erros impediram o projeto de ser importado:</Message>
<Message Id="-609" Name="FatalRollbackAlert">As alterações serão desfeitas nas etapas a seguir.</Message>
<Message Id="-610" Name="FatalProjectIntegrityRiskWarning">AVISO! NÃO INTERROMPA O PROCESSO PARA NÃO COMPROMETER A INTEGRIDADE DO PROJETO!</Message>
<Message Id="-611" Name="FatalRollingBackTransaction">Descartando a transação pendente ...</Message>
<Message Id="-612" Name="FatalApplyingBackup">Aplicando o backup para reverter alterações no caminho da aplicação.</Message>
<Message Id="-613" Name="FatalFailedToRestoreBackup">ERRO: Não foi possível aplicar o backup inteiramente devido a um erro de sistema. O backup será mantido para uma correção manual.</Message>
<Message Id="-614" Name="ProjectSaved">O projeto %1 foi salvo com %2 itens.</Message>
<Message Id="-700" Name="CannotUseDefault">Não é permitido o uso de projetos 'Default'. Se você deseja usar este projeto, você precisa fornecer outro nome utilizando Arquivo->Salvar Como.</Message>
<Message Id="-701" Name="CannotUseDefault2">Todos os eventos foram desativados.</Message>
<Message Id="-800" Name="ClassType">classe</Message>
<Message Id="-801" Name="ProjectType">projeto</Message>
<Message Id="-802" Name="RoutineType">rotina</Message>
<Message Id="-803" Name="FileType">arquivo</Message>
<Message Id="-804" Name="DirectoryType">diretório</Message>
<Message Id="-805" Name="MACGroupType">rotinas macro</Message>
<Message Id="-806" Name="INCGroupType">arquivos de inclusão</Message>
<Message Id="-807" Name="INTGroupType">rotinas intermediárias</Message>
<Message Id="-808" Name="BASGroupType">rotinas Basic</Message>
<Message Id="-809" Name="MVBGroupType">rotinas MV Basic</Message>
<Message Id="-810" Name="MVIGroupType">rotinas MVI</Message>
<Message Id="-811" Name="DFIGroupType">arquivos DFI</Message>
<Message Id="-812" Name="CLSGroupType">classes</Message>
<Message Id="-813" Name="FileGroupType">arquivos</Message>
<Message Id="-900" Name="ExportingXML">Exportando o projeto %1 para XML ...</Message>
<Message Id="-901" Name="XMLExportedTo">XML do projeto %1 exportado para %2.</Message>
<Message Id="-902" Name="ExportingTestClassToXML">Exportando a classe de teste %1 ...</Message>
<Message Id="-1000" Name="ConflictingItemDetected">CUIDADO! Foi detectada a presença do item %1 nos seguintes projetos: %2.</Message>
<Message Id="-1001" Name="ConflictingItemDetected2">É extremamente recomendado manter o item exclusivo a um projeto!</Message>
<Message Id="-1100" Name="RunningCustomHook">Executando extensão do evento %1 da classe %2 ...</Message>
<Message Id="-1101" Name="HookReturnedOK">%1 retornou sem erros.</Message>
<Message Id="-1102" Name="HookReturnedError">Falhou ao executar %1 devido ao seguinte motivo: %2</Message>
</MsgDomain>
<MsgDomain Domain="Port Menu Labels">
<Message Id="-5000" Name="MLExport">Exportar</Message>
<Message Id="-5001" Name="MLExportToXML">Exportar para XML</Message>
<Message Id="-5002" Name="MLExportTests">Exportar testes</Message>
<Message Id="-5003" Name="MLRemoveClasses">Remover classes</Message>
<Message Id="-5004" Name="MLRemoveFiles">Remover arquivos</Message>
<Message Id="-5005" Name="MLRemoveRoutines">Remover rotinas</Message>
<Message Id="-5006" Name="MLScanAndFix">Verificar e corrigir</Message>
<Message Id="-5007" Name="MLRunTests">Executar testes</Message>
<Message Id="-5008" Name="MLImport">Importar</Message>
<Message Id="-5009" Name="MLForceExport">Exportar (forçado)</Message>
<Message Id="-5010" Name="MLForceImport">Importar (forçado)</Message>
</MsgDomain>
<MsgDomain Domain="Port Context Menu Labels">
<Message Id="-6000" Name="CMLExportActive">Exportar a partir deste item</Message>
<Message Id="-6001" Name="CMLImportActive">Importar a partir deste item</Message>
<Message Id="-6002" Name="CMLRunActiveTest">Executar teste</Message>
</MsgDomain>
<MsgDomain Domain="Port Configuration Wizard">
<Message Id="-7000" Name="PCWWelcome">Bem-vindo ao assistente de configuração do Port.</Message>
<Message Id="-7001" Name="PCWInvalidChoice">Escolha inválida.</Message>
<Message Id="-7002" Name="PCWChoiceQuestion">O que você deseja fazer? (digite o número)</Message>
<Message Id="-7003" Name="PCWChoicePrompt">Sua escolha: </Message>
<Message Id="-7004" Name="PCWAborted">Abortado.</Message>
<Message Id="-7005" Name="PCWToggleEnabled">ATIVADO</Message>
<Message Id="-7006" Name="PCWToggleDisabled">DESATIVADO</Message>
<Message Id="-7007" Name="PCWBye">Até mais.</Message>
<Message Id="-7100" Name="PCWManageWorkspaceChoice">1. Gerenciar espaços de trabalho.</Message>
<Message Id="-7101" Name="PCWManageWorkspaceDescription">Gerencia espaços de trabalho que irão conter o código-fonte.</Message>
<Message Id="-7110" Name="PCWManageWorkspaceChoice1">1. Alterar espaço de trabalho padrão.</Message>
<Message Id="-7111" Name="PCWManageWorkspaceChoice1Description">Altera o espaço de trabalho utilizado por padrão. Aplicável somente para novos projetos.</Message>
<Message Id="-7112" Name="PCWManageWorkspaceChoice1StatusCurrent">O espaço de trabalho padrão atual é %1.</Message>
<Message Id="-7113" Name="PCWManageWorkspaceChoice1StatusNow">O espaço de trabalho padrão agora é %1.</Message>
<Message Id="-7120" Name="PCWManageWorkspaceChoice2">2. Gerencia espaços de trabalho existentes.</Message>
<Message Id="-7121" Name="PCWManageWorkspaceChoice2Description">Gerencia espaços de trabalhos vinculados a projetos já existentes ou de antemão.</Message>
<Message Id="-7122" Name="PCWManageWorkspaceChoice2Description2">Esta configuração sobrescreverá o espaço de trabalho padrão para o projeto escolhido.</Message>
<Message Id="-7123" Name="PCWManageWorkspaceChoice2Prompt">Digite o nome do projeto (ou deixe vazio para abortar):</Message>
<Message Id="-7124" Name="PCWManageWorkspaceChoice2Warning">AVISO: O projeto %1 ainda não existe."</Message>
<Message Id="-7125" Name="PCWManageWorkspaceChoice2StatusCurrent">Espaço de trabalho atual para este projeto: %1.</Message>
<Message Id="-7126" Name="PCWManageWorkspaceChoice2CurrentWorskpaceWarn">Será requisitado um novo espaço de trabalho a seguir.</Message>
<Message Id="-7127" Name="PCWManageWorkspaceChoice2Prompt2">Digite o caminho do espaço de trabalho (ou deixe vazio para abortar):</Message>
<Message Id="-7128" Name="PCWManageWorkspaceChoice2StatusNow">O projeto %1 agora está configurado para ser exportado no caminho: %2.</Message>
<Message Id="-7200" Name="PCWManageChangeTestSettingsChoice">2. Alterar configurações de teste.</Message>
<Message Id="-7201" Name="PCWManageChangeTestSettingsDescription">Altera configurações relacionadas à integração do Studio com a API de testes.</Message>
<Message Id="-7210" Name="PCWManageChangeTestSettingsChoice1">1. Ativar ou desativar testes por demanda.</Message>
<Message Id="-7211" Name="PCWManageChangeTestSettingsChoice1Description">Quando esta configuração estivar ativa, Port irá tentar encontrar a classe de teste da classe em edição e executar seus testes após sua compilação.</Message>
<Message Id="-7212" Name="PCWManageChangeTestSettingsChoice1Choice1">1. Ativar testes por demanda.</Message>
<Message Id="-7213" Name="PCWManageChangeTestSettingsChoice1Choice2">2. Desativar testes por demanda.</Message>
<Message Id="-7214" Name="PCWManageChangeTestSettingsChoice1StatusCurrent">Testes por demanda está atualmente %1.</Message>
<Message Id="-7220" Name="PCWManageChangeTestSettingsChoice2">2. Definir um novo prefíxo para classes de teste.</Message>
<Message Id="-7221" Name="PCWManageChangeTestSettingsChoice2Description">Um prefixo é requirido para informar ao Port qual pacote deve ser considerado como um pacote com classes de teste.</Message>
<Message Id="-7222" Name="PCWManageChangeTestSettingsChoice2Description2">Este prefíxo é utilizado como uma forma de equivalência.</Message>
<Message Id="-7223" Name="PCWManageChangeTestSettingsChoice2Description3">Ex: UnitTest.MyPackage.MyClass -> MyPackage.MyClass.</Message>
<Message Id="-7224" Name="PCWManageChangeTestSettingsChoice2Prompt">Por favor digite o prefíxo abaixo. Note que prefíxos também pode ser compostos. Ex: Package.UnitTest.</Message>
<Message Id="-7225" Name="PCWManageChangeTestSettingsChoice2StatusNow">O prefíxo agora é: %1.</Message>
<Message Id="-7230" Name="PCWManageChangeTestSettingsChoice3">3. Alterar caminho para classes de teste (XML).</Message>
<Message Id="-7231" Name="PCWManageChangeTestSettingsChoice3Description">Define o caminho raíz aonde as classes de testes serão hierarquicamente exportadas.</Message>
<Message Id="-7232" Name="PCWManageChangeTestSettingsChoice3StatusNow">O caminho para classes de teste agora é: %1.</Message>
<Message Id="-7300" Name="PCWToggleAutoExportChoice">3. Ativar ou desativar a exportação automática do XML do projeto.</Message>
<Message Id="-7301" Name="PCWToggleAutoExportDescription">Exporta um arquivo XML quando o projeto ou um item dele é salvo.</Message>
<Message Id="-7302" Name="PCWToggleAutoExportChoice1StatusCurrent">Exportação automática está atualmente como %1.</Message>
<Message Id="-7303" Name="PCWToggleAutoExportChoice1StatusNow">Exportação automática agora está como %1.</Message>
<Message Id="-7310" Name="PCWToggleAutoExportChoice1">1. Ativar exportação automática do XML.</Message>
<Message Id="-7320" Name="PCWToggleAutoExportChoice2">2. Desativar exportação automática do XML.</Message>
<Message Id="-7400" Name="PCWSetLogLevelChoice">4. Definir nível de log.</Message>
<Message Id="-7401" Name="PCWSetLogLevelDescription">Especifica o nível de verbosidade utilizado no log de operações.</Message>
<Message Id="-7402" Name="PCWSetLogLevelStatusCurrent">Nível de verbosidade atual do log: %1.</Message>
<Message Id="-7403" Name="PCWSetLogLevelStatusNow">O nível de verbosidade do log agora é: %1.</Message>
<Message Id="-7404" Name="PCWSetLogLevelStatusPrompt">Por favor escolha o nível de verbosidade do log (digite o número): </Message>
<Message Id="-7410" Name="PCWSetLogLevelStatusChoice1">1. Nível 1: Exibe enfileiramento, categorias de importação/exportação, notificações de backup, situação do espaço de trabalho e mensagens de erro.</Message>
<Message Id="-7420" Name="PCWSetLogLevelStatusChoice2">2. Nível 2: Inclui toda a verbosidade do nível 1, substituindo categorias por notificações por item.</Message>
<Message Id="-7600" Name="PCWExit">5. Sair.</Message>
<Message Id="-7970" Name="PCWPlaceholdersAnnounce">Você pode utilizar os seguinte marcadores:</Message>
<Message Id="-7971" Name="PCWPlaceholdersProject">{PROJECT} - O nome do projeto ativo.</Message>
<Message Id="-7972" Name="PCWPlaceholdersNamespace">{NAMESPACE} - O namespace ativo.</Message>
<Message Id="-7973" Name="PCWPlaceholdersUsername">{USERNAME} - O login do usuário que iniciou o processo.</Message>
<Message Id="-7974" Name="PCWPlaceholdersInstallDir">{INSTALLDIR} - O diretório de instalação.</Message>
<Message Id="-7980" Name="PCWPathRelative">Por favor digite o caminho RELATIVO a ser utilizado ao exportar os arquivos de teste. Os caminhos devem ser relativos à raiz do projeto exportado. (Ou deixe vazio para usar o padrão)</Message>
<Message Id="-7981" Name="PCWPathAbsolute">Por favor digite o caminho ABSOLUTO a ser utilizado ao exportar o código-fonte. (Ou deixe vazio para usar o padrão)</Message>
<Message Id="-7982" Name="PCWPathOSSchemes">Você pode usar ambos: esquemas *NIX ou Windows.</Message>
<Message Id="-7983" Name="PCWPathDefault">Padrão é:</Message>
<Message Id="-7984" Name="PCWPathCurrent">Atual é:</Message>
<Message Id="-7985" Name="PCWPathNew">Novo: </Message>
<Message Id="-7999" Name="PCWGoBackChoice">%1. Retornar.</Message>
</MsgDomain>
</MsgFile>
]]></Data>
</XData>
<Method name="Uninstall">
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
if '$data(^Port.Configuration("installed")) {
return $$$PERROR($$$PortIsNotInstalled, $namespace)
}
write "Removing Port, please wait ...", !
set sc = $$$OK
do ##class(Port.Configuration).Uninstall()
do ##class(Port.SourceControl.Log).Flush()
set sc = $$$ADDSC(sc, ##class(%Studio.SourceControl.Interface).SourceControlClassSet($get(^Port.Configuration("old")), $namespace))
set sc = $$$ADDSC(sc, ##class(Port.SourceControl.LogCleaner).RemoveTask())
set sc = $$$ADDSC(sc, ..RemoveGlobalMapping())
if $$$ISOK(sc) write $$$FormatText("Port has been removed from %1.", $namespace), !
else write "One or more errors ocurred while removing Port:", !!, $System.Status.GetErrorText(sc)
return $$$OK
]]></Implementation>
</Method>
<Method name="Install">
<ClassMethod>1</ClassMethod>
<FormalSpec>force:%Boolean={$get(^||Port.Envs("FORCE_INSTALL"), 0)}</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set sc = $$$OK
if 'force {
if $data(^Port.Configuration("installed")) {
write "Port is already installed. The installer has been aborted.", !
write "If you wish to change current settings then please use the wizard (Wizard^Port) or call this method with force=1.", !!
return $$$ERROR($$$GeneralError, "Port is already installed.")
}
}
try {
write !, "Installing Port ... please wait a moment.", !
write "> Creating Message Dictionary ... ", !
$$$ThrowOnError(..CreateMessageDictionary())
write "> Creating global mappings ...", !
$$$ThrowOnError(..CreateGlobalMapping())
write "> Setting up workspace structure ... ", !
do ##class(Port.Configuration).SetPrimaryWorkspace("/CacheProjects/{NAMESPACE}/{PROJECT}")
write "> Setting up test files directory ...", !
do ##class(Port.Configuration).SetTestPath("tests/cls")
write "> Defining default test class prefix ..", !
do ##class(Port.Configuration).SetTestClassPrefix("UnitTest")
write "> Configuring to run tests automatically ...", !
do ##class(Port.Configuration).EnableTestOnDemand()
write "> Configuring to export the project to XML automatically ...", !
do ##class(Port.Configuration).EnableAutoExportXML()
write "> Configuring log verbosity level to recommended level ...", !
do ##class(Port.Configuration).SetLogLevel(1)
write "> Registering source control log cleaner task for "_$namespace_" ...", !
$$$ThrowOnError(##class(Port.SourceControl.LogCleaner).StartTask())
write "> Installing %SourceControl hooks and activating it ...", !!
set ^Port.Configuration("old.sourcecontrol") = ##class(%Studio.SourceControl.Interface).SourceControlClassGet($namespace)
$$$ThrowOnError(##class(%Studio.SourceControl.Interface).SourceControlClassSet("Port.SourceControl.Hooks", $namespace))
write "ALL DONE.", !
write "NOTE: You must restart Studio in order to make the source control hooks work as expected."
set ^Port.Configuration("installed") = 1
} catch ex {
set sc = ex.AsStatus()
write !!, "FATAL: Failed to install port due to the following reason: "
do $System.OBJ.DisplayError(sc)
}
return sc
]]></Implementation>
</Method>
<Method name="CreateGlobalMapping">
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set sc = $$$OK
set storage = $get(^||Port.Envs("DATABASE"), $namespace)
set thisNamespace = $namespace
new $namespace
set $namespace = "%SYS"
if ##class(Config.MapGlobals).Exists(storage, "Port.*") {
write "> Global is already mapped. Skipping ...", !
return $$$OK
}
try {
$$$ThrowOnError(##class(Config.Namespaces).Get($namespace, .nsProperties))
set glProperties("Database") = storage
$$$ThrowOnError(##class(Config.MapGlobals).Create(thisNamespace, "Port.*", .glProperties))
} catch ex {
set sc = ex.AsStatus()
}
set $namespace = thisNamespace
return sc
]]></Implementation>
</Method>
<Method name="RemoveGlobalMapping">
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set sc = $$$OK
set storage = $get(^||Port.Envs("DATABASE"), $namespace)
set thisNamespace = $namespace
new $namespace
set $namespace = "%SYS"
if ##class(Config.MapGlobals).Exists(storage, "Port.SourceControl*") {
return ##class(Config.MapGlobals).Delete(storage, "Port.SourceControl*")
}
return $$$OK
]]></Implementation>
</Method>
<Method name="CreateMessageDictionary">
<ClassMethod>1</ClassMethod>
<CodeMode>objectgenerator</CodeMode>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
do %code.WriteLine(" k ^CacheMsg(""Port Errors""),^CacheMsgNames(""Port Errors"")")
do %code.WriteLine(" k ^CacheMsg(""Port Log Messages""), ^CacheMsgNames(""Port Log Messages"")")
do %code.WriteLine(" k ^CacheMsg(""Port Menu Labels""), ^CacheMsgNames(""Port Menu Labels"")")
do %code.WriteLine(" k ^CacheMsg(""Port Context Menu Labels""), ^CacheMsgNames(""Port Context Menu Labels"")")
set XDatas = %compiledclass.XDatas
for i=1:1:XDatas.Count() {
set XDataId = $$$quote(%compiledclass.Name_"||"_XDatas.GetAt(i).Name)
do %code.WriteLine(" set localeXData = ##class(%Dictionary.CompiledXData).%OpenId("_XDataId_").Data")
do %code.WriteLine(" set tmpFilename = ##class(%File).TempFilename(""xml"")")
do %code.WriteLine(" set file = ##class(%Stream.FileCharacter).%New()")
do %code.WriteLine(" set file.TranslateTable = ""UTF8""")
do %code.WriteLine(" $$$QuitOnError(file.LinkToFile(tmpFilename))")
do %code.WriteLine(" $$$QuitOnError(file.CopyFrom(localeXData))")
do %code.WriteLine(" $$$QuitOnError(file.%Save())")
do %code.WriteLine(" $$$QuitOnError(##class(%MessageDictionary).Import(tmpFilename))")
do %code.WriteLine(" do ##class(%File).Delete(tmpFilename)")
do %code.WriteLine(" set (localXData, tmpFilename, file) = """"")
}
do %code.WriteLine(" set io = $io")
do %code.WriteLine(" open $$$NULL")
do %code.WriteLine(" use $$$NULL")
do %code.WriteLine(" set sc = ##class(%MessageDictionary).GenerateInclude(""portmd"",,,""Port Errors,Port Log Messages,Port Menu Labels,Port Context Menu Labels"")")
do %code.WriteLine(" use io")
do %code.WriteLine(" close $$$NULL")
do %code.WriteLine(" quit sc")
]]></Implementation>
</Method>
</Class>
<Class name="Port.Logger">
<IncludeCode>portutils</IncludeCode>
<Super>%RegisteredObject</Super>
<TimeCreated>64306,37945.966346</TimeCreated>
<Property name="LogLevel">
<Type>%Integer</Type>
<InitialExpression>2</InitialExpression>
</Property>
<Property name="Silent">
<Type>%Boolean</Type>
<InitialExpression>0</InitialExpression>
</Property>
<Method name="%OnNew">
<FormalSpec>logLevel:%Integer=2</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
if ((logLevel < 1) || (logLevel > 2)) {
$$$ThrowOnError($$$PERROR($$$LogLevelIsOutOfRange, logLevel, "1, 2"))
}
set ..LogLevel = logLevel
return $$$OK
]]></Implementation>
</Method>
<Method name="Log">
<FormalSpec>messageCode:%String,messageLogLevel=2,params...:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
if ..Silent || (..LogLevel < messageLogLevel) return ""
if '$data(params) set params = 0
set formattedParams = 0
for i=1:1:params {
set formattedParams = $increment(formattedParams)
set formattedParams(formattedParams) = $$$FormatMessage($$$SessionLanguage, "Port Log Messages", params(i), params(i))
}
set msg = $$$FormatMsg("Port Log Messages", messageCode, formattedParams...)
if messageCode '= $$$Done && ((messageCode '= $$$Failed) && (messageCode '= $$$UpToDate)) set msg = "[Port] "_msg
return msg
]]></Implementation>
</Method>
<Method name="LogLine">
<FormalSpec>messageCode:%String,messageLogLevel=2,params...:%String</FormalSpec>
<ReturnType>%String</ReturnType>
<Implementation><![CDATA[
if ..Silent || (..LogLevel < messageLogLevel) return ""
return ..Log(messageCode, messageLogLevel, params...)_$c(13, 10)
]]></Implementation>
</Method>
</Class>
<Class name="Port.Project.Backup">
<Description>
This is an internal utility used to backup CSP files which is triggered whenever
the user attempts to import a workspace that contains a 'public' folder.</Description>
<IncludeCode>portutils</IncludeCode>
<Super>%RegisteredObject</Super>
<TimeCreated>64306,37561.640431</TimeCreated>
<Property name="BackupDirectory">
<Description>
The directory where the affected items will be copied into.</Description>
<Type>%String</Type>
<Internal>1</Internal>
<Private>1</Private>
</Property>
<Property name="Logger">
<Description>
A reference for the logger used to display the current operation.</Description>
<Type>Port.Project.Importer</Type>
</Property>
<Property name="IsRequired">
<Description>
An internal flag used to signal if the backup should be made.</Description>
<Type>%Boolean</Type>
<Internal>1</Internal>
<InitialExpression>0</InitialExpression>
</Property>
<Property name="BackupList">
<Description>
A list of affected files that is used to rollback.</Description>
<Type>%String</Type>
<MultiDimensional>1</MultiDimensional>
</Property>
<Method name="%OnNew">
<FormalSpec>backupDir:%String</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set ..BackupDirectory = backupDir
set ..Logger = ##class(Port.Logger).%New()
quit $$$OK
]]></Implementation>
</Method>
<Method name="Create">
<Description><![CDATA[
Creates a backup from a list generated by the Importer. Everything affected will be put into the
path provided by BackupDiretory, which is usually located at <workspace>/__backup__.]]></Description>
<FormalSpec><![CDATA[&list:%String=0]]></FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[