forked from digama0/mmj2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmj2CommandLineArguments.html
1077 lines (952 loc) · 37.2 KB
/
mmj2CommandLineArguments.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>mmj2 Command Line Arguments</title>
</head>
<body>
<h1>mmj2 Command Line Arguments<small><span style="font-style: italic;"></span><span
style="font-style: italic;"></span></small><br>
</h1>
<hr style="width: 100%; height: 2px;"><big
style="font-weight: bold; text-decoration: underline;"><br>
1) New
mmj2.jar Command Line Arguments</big><br
style="text-decoration: underline;">
<br>
Optional path name arguments were added to the <code
style="font-weight: bold;">mmj2.jar</code> command line for the
mmj2, Metamath, and mmj2 Service "home" directories. Here are the
mmj2.jar command line arguments (in order):<br>
<ol>
<li>RunParm file name. This is relative to the mmj2Path directory.
Mandatory.<br>
</li>
<li>Y/N to display the new MMJ2 Fail Popup Window when startup errors
and/or "fail" (abnormal termination) errors are encountered. On by
default.<br>
</li>
<li>The mmj2Path argument is used to specify mmj2 files and
directories. Optional. Use "" as a placeholder if omitted -- which
means use the Java Current Path as the mmj2Path.<br>
</li>
<li>The MetamathPath argument is used to specify Metamath files -- in
conjunction with RunParm "<code style="font-weight: bold;">LoadFile,set.mm</code>"
and
Metamath
Include
files
referenced
by
the
input
.mm
file.
Optional. Use "" as a placeholder if omitted -- which
means use the Java Current Path as the MetamathPath.</li>
<li>The SvcPath argument is used to specify the SvcFolder passed as
an argument in the mmj2 Service Feature (rarely used). Use "" as a
placeholder if omitted -- which means use the Java Current Path as the
SvcPath.</li>
</ol>
<br>
Thus, the mmj2.jar command line arguments have this format:<br>
<br>
<code style="font-weight: bold;">java -Xincgc
-Xms128M -Xmx256M -jar mmj2.jar </code><span
style="font-style: italic;">RunParmFileName
mmj2FailPopopWindow
mmj2Path
MetamathPath SvcPath ArgumentOptionsReport</span><br
style="font-style: italic;">
<br>
<br>
The actual Windows command line from <code style="font-weight: bold;">mmj2.bat</code>
is:<br>
<br>
<code style="font-weight: bold;">java -Xincgc
-Xms128M -Xmx256M -jar mmj2.jar RunParms.txt Y
"" c:\metamath</code> <code style="font-weight: bold;">
""</code><br>
<br>
<span style="font-style: italic;">Note: by using mmj2Path = </span><code>""</code><span
style="font-style: italic;"> the Java Current Path is used for the
mmj2 data path -- and in this case the Current Path is the location of <code>mmj2.bat</code>,
which
is
in the <code>mmj2jar</code> directory. So by using mmj2Path =
<code>""</code> we're making <code>mmj2.bat</code> portable so that no
changes are required if the mmj2jar directory is moved. In fact,
assuming that your <code>set.mm</code> file is installed at <code>c:\metamath\set.mm</code>
after you unzip the <code>mmj2.zip</code> download file you can simply
double-click <code>c:\mmj2\mmj2jar\mmj2.bat</code> to run mmj2.</span><br
style="font-style: italic;">
<br>
<br>
In Mac OSX the Applications/Utilities/Terminal <code
style="font-weight: bold;">source</code> file command line looks like
this (modify it to match your system and installations -- similar in
other Unix/Linux based systems):<br>
<br>
<code style="font-weight: bold;">java -Xincgc
-Xms128M -Xmx256M -jar mmj2.jar RunParms.txt Y
/Users/Userone/mmj2 /Users/userone/metamath</code><code
style="font-weight: bold;">
""</code><br>
<br>
<br>
For Mac OSX users an Applications/Utilities/Terminal <code
style="font-weight: bold;">source</code> file named <code
style="font-weight: bold;">MacRunMMJ2.txt</code> is provided. Modify
it to suit your system and installations (and locate it anywhere you
please), then enter the <code style="font-weight: bold;">Terminal</code>
command<br>
<br>
<code style="font-weight: bold;">source
MacRunMMJ2.txt</code><br>
<br>
<br>
<big style="font-weight: bold; text-decoration: underline;">2) RunParm
File Changes<br>
<br>
</big>The standard <code style="font-weight: bold;">RunParms.txt</code>
file was changed to be "platform agnostic" as well as friendlier and
simpler for new users, as follows:<br>
<ul>
<li>All path names in <code style="font-weight: bold;">RunParms.txt</code>
are relative (i.e. "<code style="font-weight: bold;">set.mm</code>"
instead of "<code style="font-weight: bold;">c:\metamath\set.mm</code>").</li>
<li><code style="font-weight: bold;">RunParms.txt</code> contains the
minimum number of RunParms to run the Proof Assistant GUI.</li>
<li>The "complete" version of <code style="font-weight: bold;">RunParms.txt</code>
is now named <code style="font-weight: bold;">RunParmsComplete.txt</code>
(same functionality but with all defaults specified, plus documentation
comments -- intended to help users easily figure out where to add
customizing
RunParms).</li>
</ul>
<br>
<big style="font-weight: bold; text-decoration: underline;">3)
New "mmj2 Fail Popup Window</big>"<br>
<br>
Command Line Argument #2 above is the "<code style="font-weight: bold;">displayMMJ2FailPopupWindow</code>"
argument.
How
it
works:<br>
<ul>
<li>mmj2 startup errors and mmj2 "fatal" errors (abnormal
terminations) will trigger a "popup" window showing the current RunParm
or command and the associated error message(s).</li>
<li>errors in the mmj2 command line arguments <span
style="font-style: italic; font-weight: bold;">do</span> trigger the
popup window even if "<code style="font-weight: bold;">n</code>" is
specified.<br>
</li>
<li>if "<code style="font-weight: bold;">n</code>" is specified, or
if this command line argument is omitted or
blank, the popup window is never triggered (i.e. no change to current
processing).</li>
<li>proof verification errors are excluded and <span
style="font-weight: bold; font-style: italic;">do not</span> trigger
the popup window.</li>
<li>"fatal" system errors such as <code style="font-weight: bold;">OutOfMemory</code>
and <code style="font-weight: bold;">UnableToShutdownRunawayThreadAndOMGWhyDidWeAcquireSun?</code>
exceptions <span style="font-weight: bold;"><span
style="font-style: italic;">do not</span></span> trigger the popup
window.</li>
</ul>
<br>
<br>
<big style="font-weight: bold; text-decoration: underline;">4)
New Command Line "Argument Option" Report</big><br>
<br>
Below is a sample of what you see running mmj2.bat from within the
Windows Command Prompt utility. <br>
<br>
Notice that the Argument Options Report shows the current version of
mmj2.jar, including the date/timestamp -- which should match the
date/timestamp of the mmj2.jar file itself. <br>
<br>
Also, notice that the Command Line Arguments are shown twice: first as
the are originally received by the program, and then again as they are
interpreted -- are for each path argument, in parthenseses, an example
file shows the full data path in effect. <br>
<br>
<code><span style="font-weight: bold; color: rgb(0, 0, 153);">c:\mmj2jar>mmj2<br>
<br>
c:\mmj2jar>java -Xincgc -Xms128M -Xmx256M -jar mmj2.jar RunParms.txt
Y "" c:\metamath ""</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<br style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">CommandLineArguments.displayArgumentOptionReport():<br>
<br>
Hi! I am mmj2 Release 20111101 as of 15-Oct-2011 03:34.<br>
Send mmj2 support? Paypal to siskiyousis at gmail.com<br>
Need mmj2 help? Email x178g243 at yahoo.com.<br>
<br>
Command Line Arguments:<br>
Arg #1 = RunParms.txt<br>
Arg #2 = Y<br>
Arg #3 =<br>
Arg #4 = c:\metamath<br>
Arg #5 =<br>
<br>
[3] mmj2Path = null (e.g.
C:\mmj2jar\YourFile.xyz)<br>
[4] metamathPath = c:\metamath (e.g. C:\metamath\YourFile.xyz)<br>
[5] svcPath = null (e.g.
C:\mmj2jar\YourFile.xyz)<br>
[1] runParmFile = c:\mmj2jar\RunParms.txt<br>
[2] displayMMJ2FailPopupWindow<br>
= true<br>
<br>
***END CommandLineArguments.displayArgumentOptionReport()***</span><span
style="font-weight: bold; color: rgb(0, 0, 153);"></span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<br style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #1 = LoadFile,set.mm</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #2 = VerifyProof,*</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #3 = Parse,*</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #4 =
ProofAsstUnifySearchExclude,biigb,xxxid,dummylink</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #5 = ProofAsstProofFolder,myproofs</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #6 = TheoremLoaderMMTFolder,myproofs</span><br
style="font-weight: bold; color: rgb(0, 0, 153);">
<span style="font-weight: bold; color: rgb(0, 0, 153);">**** I-UT-0015
Processing RunParmFile Command #7 = RunProofAsstGUI</span><br
style="font-weight: bold; color: rgb(51, 51, 255);">
<br>
</code>etc.<br>
etc.<br>
<br>
<br>
<big style="font-weight: bold; text-decoration: underline;">5)
Old Command Line Arguments Eliminated</big>:<br>
<br>
These new mmj2.jar command line arguments replace existing
arguments which (apparently) are never used and will likely never be
used by anyone, ever... (not even in the mmj2 batch/regression test kit
):<br>
<ul>
<li>RunParm File Charset Name</li>
<li>RunParm File DelimitedTextParser Delimiter Character</li>
<li>RunParm File DelimitedTextParser Quoter Character.</li>
</ul>
<br>
<br>
<hr style="width: 100%; height: 2px;"><big style="font-style: italic;"><big><span
style="font-weight: bold;">BELOW is documentation written about the
new Paths arguments prior to writing code. You may find it useful or
interesting, but probably not. Feel free to stop reading and ignore the
rest of this document.</span></big></big><br style="font-style: italic;">
<hr style="width: 100%; height: 2px; font-style: italic;">
<h2>The Problem</h2>
mmj2 allows files to be specified using either "absolute" or "relative"
paths. See <a
href="http://download.oracle.com/javase/1,5.0/docs/api/java/io/File.html">http://download.oracle.com/javase/1,5.0/docs/api/java/io/File.html</a>
for an excellection discussion of absolute vs. relative path names.<br>
<br>
Unfortunately, (with a few exceptions such as the <code
style="font-weight: bold;">ProofAsstProofFolder</code> RunParm
specification), the general parent of relative path names cannot be
specified inside
mmj2 -- and default to the <span style="font-style: italic;">Current
Path</span> (the directory from
which mmj2 is being run or the path set by the "<code>pushd</code>"
command used
when running mmj2.) <br>
<br>
As a result:<br>
<ul>
<li>Absolute path names specific to Windows are used throughout the <code
style="font-weight: bold;">mmj2.zip</code> software package files,
including
the batch/regression test kit which makes regression testing on other
platforms such as Max OSX inconvenient.</li>
<li>The distinction between where mmj2 is installed/run and where the
user stores data and customizations is not supported directly by mmj2,
and this may inconvenience users when new releases of mmj2 are
installed.</li>
<li>RunParms.txt is not "platform agnostic", meaning that users of
non-Windows systems are always required to customize <code
style="font-weight: bold;">RunParms.txt</code> simply to change
absolute path names.</li>
<li>The entire absolute/relative path issue is somewhat ambiguous and
murky for users, to the point where at least one user actually
installed software on his Mac in order to be able to run mmj2 in a
Windows environment! (What a waste of time and money.)</li>
</ul>
<br>
<hr style="width: 100%; height: 2px;">
<h2>The Solution</h2>
Optional path name arguments will be added to the mmj2.jar command line
(in mmj2.bat) to specify the mmj2 and the Metamath "home" directories:<br>
<ul>
<li>These will be used throughout mmj2 in every coding instance
involving a file: the Metamath path name applies only to the <code
style="font-weight: bold;">LoadFile</code> RunParm, the mmj2 Service
path name applies and the mmj2 path name applies to everything else.<br>
</li>
<li>They may themselves be either absolute paths or relative, but <span
style="text-decoration: underline;">the intention is that they will
most commonly be absolute specifications</span>.</li>
<li>They must be optional and transparent, meaning that existing <code
style="font-weight: bold;">mmj2.bat</code> and <code
style="font-weight: bold;">RunParm.txt</code> files must generate
unchanged results.<br>
</li>
<li>Additional path arguments at a lower level were considered and
rejected as potentially raising more problems than they solve (e.g. a
Proof Assistant Path, or a GMFF Path, or even a path for every single
different file used anywhere in mmj2).</li>
<li>Also considered: the idea of also adding RunParm commands to
allow the paths to be changed during processing -- idea shelved for
now: potentially useful for testing but not absolutely necessary and
worse, adding complications (such as when is the parent path "bound" to
a file's path -- at first use or when the RunParm is processed?)</li>
<li>Note: the SvcPath argument was added at the last minute for the
sake of completeness. I am not aware of anyone using the mmj2 Service
Feature which allows mmj2 facilities to be accessed by an external
program. However, if we're going to even have an mmj2 Service Feature
then it has to be supported, and it is reasonable to suppose that an
external program will not locate its data inside the mmj2 directories.
No, it would have its own direct<br>
</li>
</ul>
Here is how a path name argument will be used. Let's use LoadFile as an
example:<br>
<ul>
<li>If the LoadFile file parameter is an absolute path name (i.e.
"c:\metamath\set.mm") then the Metamath Path Name is ignored;</li>
<li>Otherwise, if the Metamath Path Name argument is omitted or is
blank or is an empty string, the LoadFile File will be constructed
relative to the Current Path (as is done presently);</li>
<li>Otherwise, the LoadFile File will be constructed relative to the
Metamath Path Name (which may itself be relative to the current path!)</li>
</ul>
<code><big><big><span style="font-weight: bold;">Example: </span></big></big></code><br>
<table style="text-align: left; width: 70%;" border="5" cellpadding="2"
cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top; font-weight: bold;"><code>ARGUMENTS
AND
PARAMETERS___________________________________________________<br>
</code></td>
<td style="vertical-align: top; font-weight: bold;"><code>FILE TO
BE LOADED_________________________________<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top; font-weight: bold;"><code>"LoadFile,c:\metamath\set.mm"</code></td>
<td style="vertical-align: top; font-weight: bold;"><code>"c:\metamath\set.mm"</code></td>
</tr>
<tr>
<td style="vertical-align: top; font-weight: bold;"><code>"LoadFile,set.mm",
Metamath
Path
Name
omitted,
Current
Path
is
"c:\mmj2jar"</code></td>
<td style="vertical-align: top; font-weight: bold;"><code>"c:\mmj2jar\set.mm"</code></td>
</tr>
<tr>
<td style="vertical-align: top; font-weight: bold;"><code>"LoadFile,set.mm",
Metamath
Path
"metamath",
Current
Path
is
"c:\mmj2jar"<br>
</code></td>
<td style="vertical-align: top; font-weight: bold;"><code>"c:\mmj2jar\metamath\set.mm"</code></td>
</tr>
<tr>
<td style="vertical-align: top; font-weight: bold;"><code>"LoadFile,set.mm",
Metamath
Path
"c:\metamath",
Current
Path
is
"c:\mmj2jar"
</code></td>
<td style="vertical-align: top; font-weight: bold;"><code>"c:\metamath\set.mm"</code></td>
</tr>
</tbody>
</table>
<br>
<br>
<hr style="width: 100%; height: 2px;"><br>
<h2>Current System Data Accesses<br>
</h2>
<br>
<table style="text-align: left; width: 1572px; height: 4604px;"
border="5" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="vertical-align: top; text-decoration: underline;"><code><span
style="color: rgb(51, 51, 255); font-weight: bold;">COMMONLY USED
RUNPARMS and COMMAND ARGUMENTS</span><br>
</code> </td>
<td style="vertical-align: top;"><code><span
style="color: rgb(51, 51, 255); text-decoration: underline; font-weight: bold;">WHERE_FILE_CONSTRUCTED/HOW_PATH_USED</span>__________________________________________________________________________<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>java
-Xincgc -Xms128M -Xmx256M -jar mmj2.jar RunParms.txt </code></td>
<td style="vertical-align: top;"><code>src\mmj\util\BatchFramework#runIt()
calls<br>
src\mmj\util\RunParmFile#RunParmFile()
--> relative to current path<br>
<br>
and <br>
<br>
java -jar mmj2.jar --> current path searched first<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>LoadFile,c:\metamath\set.mm</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\LogicalSystemBoss#doLoadFile()
calls<br>
src\mmj\mmio\Systemizer#load() <br>
--> relative to current path<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ProofAsstProofFolder,c:\my\proofs
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\ProofAsstBoss#editProofAsstProofFolder()
calls<br>
src\mmj\util\Boss#editExistingFolderRunParm() calls<br>
src\mmj\util\Boss#buildFileObjectForExistingFolder() <br>
--> relative to
current path<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TheoremLoaderMMTFolder,c:\my\proofs
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\TheoremLoaderBoss#editTheoremLoaderMMTFolder()
calls<br>
src\mmj\tl\TlPreferences#setMMTFolder() calls<br>
src\mmj\tl\MMTFolder#MMTFolder() <br>
--> relative to current path</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>LoadTheoremsFromMMTFolder,*<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\util\TheoremLoaderBoss#editLoadTheoremsFromMMTFolder()
calls<br>
src\mmj\tl\TheoremLoader#loadTheoremsFromMMTFolder() calls<br>
src\mmj\tl\MMTFolder#constructMMTTheoremSet() calls<br>
java.io.File.listFiles() <br>
--> relative to MMTFolder<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>GMFFExportParms,althtml,ON,althtmldef,GMFF\althtml,.html,<br>
GMFF\models\althtml,A,ISO-8859-1,general </code></td>
<td style="vertical-align: top;"><code>src\mmj\util\GMFFBoss#doRunParmGMFFExportParms()
calls<br>
src\mmj\gmff\GMFFExportParms#GMFFExportParms() <br>
<br>
and then caches the
GMFFExportParms by call to<br>
<br>
src\mmj\gmff\GMFFManager#accumInputGMFFExportParms()<br>
<br>
then, later...<br>
src\mmj\gmff\GMFFManager#initialization() calls<br>
src\mmj\gmff\GMFFManager#loadExportParmsList() calls<br>
src\mmj\gmff\GMFFManager.#validateExportParmsList() calls<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid()<br>
<br>
then<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateExportDirectory() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() --> relative to current path<br>
<br>
and<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateModelsDirectory() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() --> relative to current path<br>
<br>
and<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateOutputFileName() <br>
--> output
file name is (enforced) local file name in Export Directory.<br>
<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code><span
style="color: rgb(51, 51, 255); font-weight: bold; text-decoration: underline;">ProofAsstGUI
FILE
ACCESSES<br>
</span></code></td>
<td style="vertical-align: top;"><code><br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>File / Save Proof File<br>
and saveIfAskedBeforeExit()<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doFileSaveAction()
calls<br>
javax.swing.JFileChooser#.getSelectedFile() <br>
--> initially relative to ProofAsstProofFolder but user can change<br>
<br>
and <br>
src\mmj\pa\ProofAsstGUI#doFileSaveAction() calls<br>
saveOldProofTextFile() <br>
--> output path and name selected/approved by user (no change
required)<br>
<br>
and <br>
src\mmj\pa\ProofAsstGUI#doFileSaveAction() calls<br>
saveNewProofTextFile() <br>
--> output path and name selected/approved by user (no change
required)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>File / Open Proof File<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doFileOpenAction()
calls<br>
javax.swing.JFileChooser#.getSelectedFile() <br>
--> initially relative to ProofAsstProofFolder but user can change<br>
<br>
and <br>
src\mmj\pa\ProofAsstGUI#doFileOpenAction() calls<br>
src\mmj\pa\ProofAsstGUI#startRequestAction(new RequestFileOpen()) calls<br>
src\mmj\pa\ProofAsstGUI#RequestFileOpen#send() calls<br>
src\mmj\pa\ProofAsstGUI#readProofTextFromFile() <br>
--> no change required, file chosen/approved by user<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>File / Save As<br>
</code></td>
<td style="vertical-align: top;"><code>(basically the same as
File / Save Proof File with respect to file accesses. --> no change
required)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>File / Export Via GMFF<br>
GMFF / Export Via GMFF<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doFileExportViaGMFFAction()
calls<br>
src\mmj\pa\ProofAsstGUI#startRequestAction(new RequestExportViaGMFF())
calls<br>
src\mmj\pa\ProofAsstGUI#RequestExportViaGMFF#send() calls<br>
src\mmj\pa\ProofAsst#exportViaGMFF() calls<br>
src\mmj\gmff\GMFFManager#exportProofWorksheet() calls<br>
src\mmj\gmff\ModelAExporter#exportProofWorksheet() calls<br>
src\mmj\gmff\GMFFExporter#outputToExportFile() calls<br>
src\mmj\gmff\GMFFExporter#writeExportFile() calls<br>
src\mmj\gmff\GMFFExportFile#GMFFExportFile() <br>
--> relative to gmffExportParms.exportFolder (no change required)<br>
<br>
also<br>
<br>
src\mmj\gmff\GMFFExporter#readModelFile() calls<br>
src\mmj\gmff\GMFFInputFile#GMFFInputFile() <br>
--> relative to gmffExportParms.modelsFolder (no change required)<br>
<br>
also <br>
src\mmj\gmff\GMFFManager#exportProofWorksheet() calls<br>
src\mmj\gmff\GMFFManager#initialization() calls<br>
src\mmj\gmff\GMFFManager#loadExportParmsList() calls<br>
src\mmj\gmff\GMFFManager.#validateExportParmsList() calls<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid()<br>
<br>
and<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateExportDirectory() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() --> relative to current path<br>
<br>
and<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateModelsDirectory() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() --> relative to current path<br>
<br>
and<br>
src\mmj\gmff\GMFFExportParms#areExportParmsValid() calls<br>
src\mmj\gmff\GMFFExportParms#validateOutputFileName() <br>
--> output
file name is (enforced) local file name in Export Directory.<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TL / Unify + Store In
LogSys and MMT Folder<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#startUnificationAction(<br>
false, null, null, new
StoreInLogSysAndMMTFolderTLRequest()) calls<br>
src\mmj\tl\TheoremLoader#storeInLogSysAndMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#storeInMMTFolder() calls<br>
src\mmj\tl\MMTFolder#storeMMTTheoremFile() calls<br>
src\mmj\tl\MMTTheoremFile#MMTTheoremFile() <br>
--> relative to MMTFolder (no change required)<br>
<br>
and<br>
src\mmj\tl\TheoremLoader#storeInLogSysAndMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#loadTheoremsFromMMTFolder() calls<br>
src\mmj\tl\MMTFolder#constructMMTTheoremSet() calls <br>
java.io.File#listFiles() <br>
--> relative to MMTFolder (no change required)<br>
<br>
and <br>
src\mmj\tl\MMTFolder#constructMMTTheoremSet() calls <br>
src\mmj\tl\MMTTheoremSet#MMTTheoremSet() <br>
--> relative to MMTFolder (no change required)</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TL / Unify + Store In MMT
Folder</code></td>
<td style="vertical-align: top;"><code>(basically the same as TL
/ Unify + Store In LogSys <br>
and MMT Folder with respect to file accesses)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TL / Load Theorems From
MMT Folder<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doLoadTheoremsFromMMTFolderItemAction()
calls<br>
src\mmj\pa\ProofAsstGUI#startRequestAction(new
RequestLoadTheoremsFromMMTFolder()) calls<br>
src\mmj\pa\ProofAsst#loadTheoremsFromMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#loadTheoremsFromMMTFolder() calls<br>
src\mmj\tl\MMTFolder#constructMMTTheoremSet() calls<br>
java.io.File.listFiles() --> relative to MMTFolder<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TL / Extract Theorem To
MMT Folder<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doExtractTheoremToMMTFolderItemAction()
calls<br>
src\mmj\pa\ProofAsstGUI#startRequestAction(new
RequestExtractTheoremToMMTFolder) calls<br>
src\mmj\pa\ProofAsst#extractTheoremToMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#extractTheoremToMMTFolder() calls<br>
src\mmj\tl\MMTFolder#storeMMTTheoremFile() calls<br>
java\src\mmj\tl\MMTTheoremFile#MMTTheoremFile() <br>
--> relative to MMTFolder (no change required)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>TL / Set Theorem Loader
MMT Folder<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#doSetTLMMTFolderItemAction()
calls<br>
src\mmj\pa\ProofAsstGUI#getNewMMTFolder() calls<br>
javax.swing.JFileChooser#getSelectedFile() <br>
--> chosen/approved by user (no change needed)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ProofAsstGUI constructor
(start-up)<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\pa\ProofAsstGUI#ProofAsstGUI()
calls<br>
src\mmj\pa\ProofAsstGUI#buildFileChooser() <br>
--> relative to ProofAsstProofFolder (no change required)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code><br>
</code></td>
<td style="vertical-align: top;"><code><br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code><span
style="color: rgb(51, 51, 255); font-weight: bold; text-decoration: underline;">USED
IN
BATCH/REGRESSION
TESTING</span><br>
</code> </td>
<td style="vertical-align: top;"><code><br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>UnifyPlusStoreInMMTFolder,c:\myproofs\syl.mmp
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\TheoremLoaderBoss#editUnifyPlusStoreInMMTFolder()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstImportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileReader() <br>
--> relative to ProofAsstProofFolder (no change needed!)<br>
<br>
then ...<br>
<br>
src\mmj\tl\TheoremLoader#unifyPlusStoreInMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#storeInMMTFolder() calls<br>
src\mmj\tl\MMTFolder#storeMMTTheoremFile() calls<br>
src\mmj\tl\MMTTheoremFile#MMTTheoremFile() <br>
--> relative to MMTFolder (no change needed)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>UnifyPlusStoreInLogSysAndMMTFolder,c:\myproofs\syl.mmp
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\TheoremLoaderBoss#editUnifyPlusStoreInLogSysAndMMTFolder()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstImportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileReader() <br>
--> relative to ProofAsstProofFolder (no change needed!)<br>
<br>
then...<br>
<br>
src\mmj\util\TheoremLoaderBoss#editUnifyPlusStoreInLogSysAndMMTFolder()
calls<br>
src\mmj\tl\TheoremLoader#unifyPlusStoreInLogSysAndMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#storeInLogSysAndMMTFolder() calls<br>
src\mmj\tl\TheoremLoader#storeInMMTFolder() calls<br>
src\mmj\tl\MMTFolder#storeMMTTheoremFile() calls<br>
src\mmj\tl\MMTTheoremFile#MMTTheoremFile() <br>
--> relative to MMTFolder (no change needed)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ExtractTheoremToMMTFolder,syl<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\util\TheoremLoaderBoss#editExtractTheoremToMMTFolder()
calls<br>
src\mmj\tl\TheoremLoader#extractTheoremToMMTFolder() calls<br>
src\mmj\tl\MMTFolder#storeMMTTheoremFile() calls<br>
java\src\mmj\tl\MMTTheoremFile#MMTTheoremFile() <br>
--> relative to MMTFolder (no change required)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ProofAsstExportToFile,*,c:\my\export.mmp,new,un-unified,Randomized,Print,NoDeriveFormulas
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\ProofAsstBoss#doProofAsstExportToFile()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstExportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileWriter() <br>
--> relative to ProofAsstProofFolder (no change required)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ProofAsstBatchTest,*,c:\my\export.mmp,un-unified,NotRandomized,<br>
NoPrint,DeriveFormulas,NoCompareDJs,NoUpdateDJs,NoAsciiRetest </code></td>
<td style="vertical-align: top;"><code>src\mmj\util\ProofAsstBoss#doProofAsstBatchTest()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstImportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileReader() <br>
--> relative to ProofAsstProofFolder (no change required)</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>StepSelectorBatchTest,c:\mmj2\UT7000.mmp,326,6
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\ProofAsstBoss#doStepSelectorBatchTest()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstImportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileReader() <br>
--> relative to ProofAsstProofFolder (no change required)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>PreprocessRequestBatchTest,C:\mmj2\data\mmp\tests\UT7001.mmp,EraseAndRederiveFormulas<br>
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\ProofAsstBoss#doPreprocessRequestBatchTest()
calls<br>
src\mmj\util\ProofAsstBoss#editProofAsstImportFileRunParm() calls<br>
src\mmj\util\Boss#doConstructBufferedFileReader() <br>
--> relative to ProofAsstProofFolder (no change required)<br>
</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>GMFFExportFromFolder,myproofs,syl,.mmp,999999,AppendFileName
<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\util\GMFFBoss#doGMFFExportFromFolder()
calls<br>
src\mmj\gmff\GMFFManager#exportFromFolder() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() <br>
--> relative to current path<br>
<br>
and <br>
<br>
src\mmj\gmff\GMFFManager#exportFromFolder() calls<br>
src\mmj\gmff\GMFFManager#exportProofWorksheet() calls<br>
src\mmj\gmff\ModelAExporter#exportProofWorksheet() calls<br>
src\mmj\gmff\GMFFExporter#outputToExportFile() calls<br>
src\mmj\gmff\GMFFExporter#writeExportFile() calls<br>
src\mmj\gmff\GMFFExportFile#GMFFExportFile() <br>
--> relative to gmffExportParms.exportFolder (no change required)<br>
<br>
(note: append file...always just a local file name, not a path name)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>GMFFExportTheorem,syl,999999,AppendFileName</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\GMFFBoss#doGMFFExportTheorem()
calls<br>
src\mmj\gmff\GMFFManager#exportTheorem() calls<br>
src\mmj\gmff\GMFFManager#gmffExportOneTheorem() calls<br>
src\mmj\gmff\GMFFManager#exportProofWorksheet() calls<br>
src\mmj\gmff\ModelAExporter#exportProofWorksheet() calls<br>
src\mmj\gmff\GMFFExporter#outputToExportFile() calls<br>
src\mmj\gmff\GMFFExporter#writeExportFile() calls<br>
src\mmj\gmff\GMFFExportFile#GMFFExportFile() <br>
--> relative to gmffExportParms.exportFolder (no change required)<br>
<br>
(note: append file...always just a local file name, not a path name)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>GMFFParseMetamathTypesetComment,althtmldef,mydirectory,<br>
mytypesetdefs.mm,PRINT<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\util\GMFFBoss#doGMFFParseMetamathTypesetComment()
calls<br>
src\mmj\gmff\GMFFManager#parseMetamathTypesetComment() calls<br>
src\mmj\gmff\GMFFFolder#GMFFFolder() <br>
--> relative to current path (note: should be modified to use
mmj2Path)<br>
<br>
and <br>
<br>
src\mmj\gmff\GMFFManager#parseMetamathTypesetComment() calls<br>
src\mmj\gmff\GMFFInputFile#getFileContents() <br>
--> mytypesetdefs.mm is
relative to mydirectory (expected to be a <br>
local file name in that
directory)<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code><br>
</code> </td>
<td style="vertical-align: top;"><code><br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code><span
style="color: rgb(51, 51, 255); font-weight: bold; text-decoration: underline;">INFREQUENTLY
USED</span><br>
</code> </td>
<td style="vertical-align: top;"><code><br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>SystemErrorFile,c:\my\mmjSyserrTest001.txt,new,""
</code></td>
<td style="vertical-align: top;"><code>src\mmj\util\OutputBoss#editSysErrFile()
calls<br>
src\mmj\util\Boss#editPrintWriterRunParm() calls<br>
src\mmj\util\Boss#doConstructPrintWriter() <br>
--> relative to current
path</code></td>
</tr>
<tr>
<td style="vertical-align: top;"><code>SystemOutputFile,c:\my\mmjSysoutTest001.txt,new,""
<br>
</code> </td>
<td style="vertical-align: top;"><code>src\mmj\util\OutputBoss#editSysOutFile()
calls<br>
src\mmj\util\Boss#editPrintWriterRunParm() calls<br>
src\mmj\util\Boss#doConstructPrintWriter() <br>
--> relative to current
path<br>
</code> </td>
</tr>
<tr>
<td style="vertical-align: top;"><code>ProofAsstStartupProofWorksheet,c:\mmj2\data\mmp\PATutorial\Page101.mmp