@@ -107,18 +107,27 @@ public static void collationChart(UCA uca) throws IOException {
107
107
final String folder = GEN_CHARTS_DIR + "collation/" ;
108
108
109
109
Utility .copyTextFile (
110
- Settings . SRC_UCA_DIR + "index.html" ,
110
+ WriteCharts . class . getResource ( "index.html" ). getPath () ,
111
111
Utility .UTF8 ,
112
112
folder + "index.html" ,
113
113
replacement );
114
114
Utility .copyTextFile (
115
- Settings .SRC_UCA_DIR + "charts.css" , Utility .LATIN1 , folder + "charts.css" , null );
115
+ WriteCharts .class .getResource ("charts.css" ).getPath (),
116
+ Utility .LATIN1 ,
117
+ folder + "charts.css" ,
118
+ null );
116
119
Utility .copyTextFile (
117
- Settings .SRC_UCA_DIR + "help.html" , Utility .UTF8 , folder + "help.html" , null );
120
+ WriteCharts .class .getResource ("help.html" ).getPath (),
121
+ Utility .UTF8 ,
122
+ folder + "help.html" ,
123
+ null );
118
124
119
125
indexFile = Utility .openPrintWriter (folder , "index_list.html" , Utility .UTF8_WINDOWS );
120
126
Utility .appendFile (
121
- Settings .SRC_UCA_DIR + "index_header.html" , Utility .UTF8 , indexFile , replacement );
127
+ WriteCharts .class .getResource ("index_header.html" ).getPath (),
128
+ Utility .UTF8 ,
129
+ indexFile ,
130
+ replacement );
122
131
123
132
/*
124
133
indexFile.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
@@ -319,18 +328,25 @@ public static void normalizationChart() throws IOException {
319
328
// System.out.println("File: " + new File(".").getCanonicalPath());
320
329
321
330
Utility .copyTextFile (
322
- Settings . SRC_UCA_DIR + "index.html" ,
331
+ WriteCharts . class . getResource ( "index.html" ). getPath () ,
323
332
Utility .UTF8 ,
324
333
folder + "index.html" ,
325
334
replacement );
326
335
Utility .copyTextFile (
327
- Settings .SRC_UCA_DIR + "charts.css" , Utility .LATIN1 , folder + "charts.css" );
336
+ WriteCharts .class .getResource ("charts.css" ).getPath (),
337
+ Utility .LATIN1 ,
338
+ folder + "charts.css" );
328
339
Utility .copyTextFile (
329
- Settings .SRC_UCA_DIR + "norm_help.html" , Utility .UTF8 , folder + "help.html" );
340
+ WriteCharts .class .getResource ("norm_help.html" ).getPath (),
341
+ Utility .UTF8 ,
342
+ folder + "help.html" );
330
343
331
344
indexFile = Utility .openPrintWriter (folder , "index_list.html" , Utility .UTF8_WINDOWS );
332
345
Utility .appendFile (
333
- Settings .SRC_UCA_DIR + "index_header.html" , Utility .UTF8 , indexFile , replacement );
346
+ WriteCharts .class .getResource ("index_header.html" ).getPath (),
347
+ Utility .UTF8 ,
348
+ indexFile ,
349
+ replacement );
334
350
335
351
/*
336
352
indexFile.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
@@ -447,18 +463,27 @@ public static void caseChart() throws IOException {
447
463
final String folder = GEN_CHARTS_DIR + "case/" ;
448
464
449
465
Utility .copyTextFile (
450
- Settings . SRC_UCA_DIR + "index.html" ,
466
+ WriteCharts . class . getResource ( "index.html" ). getPath () ,
451
467
Utility .UTF8 ,
452
468
folder + "index.html" ,
453
469
replacement );
454
470
Utility .copyTextFile (
455
- Settings .SRC_UCA_DIR + "charts.css" , Utility .LATIN1 , folder + "charts.css" , null );
471
+ WriteCharts .class .getResource ("charts.css" ).getPath (),
472
+ Utility .LATIN1 ,
473
+ folder + "charts.css" ,
474
+ null );
456
475
Utility .copyTextFile (
457
- Settings .SRC_UCA_DIR + "case_help.html" , Utility .UTF8 , folder + "help.html" , null );
476
+ WriteCharts .class .getResource ("case_help.html" ).getPath (),
477
+ Utility .UTF8 ,
478
+ folder + "help.html" ,
479
+ null );
458
480
459
481
indexFile = Utility .openPrintWriter (folder , "index_list.html" , Utility .UTF8_WINDOWS );
460
482
Utility .appendFile (
461
- Settings .SRC_UCA_DIR + "index_header.html" , Utility .UTF8 , indexFile , replacement );
483
+ WriteCharts .class .getResource ("index_header.html" ).getPath (),
484
+ Utility .UTF8 ,
485
+ indexFile ,
486
+ replacement );
462
487
463
488
/*
464
489
indexFile.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
@@ -574,18 +599,22 @@ public static void scriptChart() throws IOException {
574
599
final String folder = GEN_CHARTS_DIR + "script/" ;
575
600
576
601
Utility .copyTextFile (
577
- Settings . SRC_UCA_DIR + "index.html" ,
602
+ WriteCharts . class . getResource ( "index.html" ). getPath () ,
578
603
Utility .UTF8 ,
579
604
folder + "index.html" ,
580
605
replacement );
581
606
Utility .copyTextFile (
582
- Settings .SRC_UCA_DIR + "charts.css" , Utility .LATIN1 , folder + "charts.css" );
607
+ WriteCharts .class .getResource ("charts.css" ).getPath (),
608
+ Utility .LATIN1 ,
609
+ folder + "charts.css" );
583
610
Utility .copyTextFile (
584
- Settings .SRC_UCA_DIR + "script_help.html" , Utility .UTF8 , folder + "help.html" );
611
+ WriteCharts .class .getResource ("script_help.html" ).getPath (),
612
+ Utility .UTF8 ,
613
+ folder + "help.html" );
585
614
586
615
indexFile = Utility .openPrintWriter (folder , "index_list.html" , Utility .UTF8_WINDOWS );
587
616
Utility .appendFile (
588
- Settings . SRC_UCA_DIR + "script_index_header.html" ,
617
+ WriteCharts . class . getResource ( "script_index_header.html" ). getPath () ,
589
618
Utility .UTF8 ,
590
619
indexFile ,
591
620
replacement );
@@ -724,18 +753,25 @@ public static void indexChart() throws IOException {
724
753
final String folder = GEN_CHARTS_DIR + "name/" ;
725
754
726
755
Utility .copyTextFile (
727
- Settings . SRC_UCA_DIR + "index.html" ,
756
+ WriteCharts . class . getResource ( "index.html" ). getPath () ,
728
757
Utility .UTF8 ,
729
758
folder + "index.html" ,
730
759
replacement );
731
760
Utility .copyTextFile (
732
- Settings .SRC_UCA_DIR + "charts.css" , Utility .LATIN1 , folder + "charts.css" );
761
+ WriteCharts .class .getResource ("charts.css" ).getPath (),
762
+ Utility .LATIN1 ,
763
+ folder + "charts.css" );
733
764
Utility .copyTextFile (
734
- Settings .SRC_UCA_DIR + "name_help.html" , Utility .UTF8 , folder + "help.html" );
765
+ WriteCharts .class .getResource ("name_help.html" ).getPath (),
766
+ Utility .UTF8 ,
767
+ folder + "help.html" );
735
768
736
769
indexFile = Utility .openPrintWriter (folder , "index_list.html" , Utility .UTF8_WINDOWS );
737
770
Utility .appendFile (
738
- Settings .SRC_UCA_DIR + "index_header.html" , Utility .UTF8 , indexFile , replacement );
771
+ WriteCharts .class .getResource ("index_header.html" ).getPath (),
772
+ Utility .UTF8 ,
773
+ indexFile ,
774
+ replacement );
739
775
740
776
int columnCount = 0 ;
741
777
char lastInitial = 0 ;
0 commit comments