|
a/tool/run/plugins/spdx/show.java |
|
b/tool/run/plugins/spdx/show.java |
|
... |
|
... |
85 |
|
85 |
|
86 |
|
86 |
|
87 |
String summary =
|
87 |
String summary =
|
88 |
"<h2>"
|
88 |
"<h2>"
|
89 |
//+ html.getCommonFolderIcon("wooden-box-label.png")
|
89 |
//+ html.getCommonFolderIcon("wooden-box-label.png")
|
90 |
+ "SPDX documents"
|
90 |
+ "SPDX summary"
|
91 |
+ "</h2>"
|
91 |
+ "</h2>"
|
92 |
+ html._div
|
92 |
+ html._div
|
93 |
+ html.div(20)
|
93 |
+ html.div(20)
|
94 |
//+ html.getCommonFolderIcon("documents-stack.png")
|
94 |
//+ html.getCommonFolderIcon("documents-stack.png")
|
95 |
+ core.products.size() + " SPDX documents containing "
|
95 |
+ core.products.size() + " documents"
|
|
|
96 |
+ html.br
|
|
|
97 |
//+ " containing "
|
|
|
98 |
//+ html.getCommonFolderIcon("calculator.png")
|
|
|
99 |
+ counterLicensesDeclared + " files with declared licenses"
|
|
|
100 |
+ html.br
|
96 |
+ counterFiles + " files in total"
|
101 |
+ counterFiles + " files in total"
|
97 |
+ html.br
|
102 |
+ html.br
|
98 |
//+ html.getCommonFolderIcon("calculator.png")
|
|
|
99 |
+ counterLicensesDeclared + " files with declared licenses"
|
|
|
100 |
//+ percentage
|
103 |
//+ percentage
|
101 |
//+ html.getCommonFolderIcon("stickman.png")
|
104 |
//+ html.getCommonFolderIcon("stickman.png")
|
102 |
+ counterCreators + " SPDX creators" + html.br
|
105 |
+ counterCreators + " reviewers" + html.br
|
103 |
+ html.br
|
106 |
+ html.br
|
104 |
;
|
107 |
;
|
105 |
|
108 |
|
106 |
// generate the nice graph
|
109 |
// generate the nice graph
|
107 |
String[] titles = new String[]{"No license declared", "License declared"};
|
110 |
String[] titles = new String[]{"No license declared", "License declared"};
|
|
... |
|
... |
111 |
File graphFile = Graphs.generate(thisFolder, titles, values);
|
114 |
File graphFile = Graphs.generate(thisFolder, titles, values);
|
112 |
|
115 |
|
113 |
String[] header = new String[]{summary,
|
116 |
String[] header = new String[]{summary,
|
114 |
html.br
|
117 |
html.br
|
115 |
+ html.getIcon("chart.png", request)};
|
118 |
+ html.getIcon("chart.png", request)};
|
116 |
values = new int[]{270, 200};
|
119 |
values = new int[]{270, 180};
|
117 |
|
120 |
|
118 |
summary = Table.alignedTable(header, values);
|
121 |
summary = Table.alignedTable(header, values);
|
119 |
|
122 |
|
120 |
String result =
|
123 |
String result =
|
121 |
html.div(20)
|
124 |
html.div(20)
|
122 |
+ summary
|
125 |
+ summary
|
|
|
126 |
+ html.h2("List of documents")
|
123 |
+ listFilesSPDX(request)
|
127 |
+ listFilesSPDX(request)
|
124 |
//+ html.br
|
128 |
//+ html.br
|
125 |
+ html._div
|
129 |
+ html._div
|
126 |
+ html.br
|
130 |
+ html.br
|
127 |
+ "";
|
131 |
+ "";
|