|
a/tool/run/plugins/spdx/show.java |
|
b/tool/run/plugins/spdx/show.java |
|
... |
|
... |
66 |
counterFiles = 0,
|
66 |
counterFiles = 0,
|
67 |
counterCreators = 0,
|
67 |
counterCreators = 0,
|
68 |
counterLicensesDeclared = 0
|
68 |
counterLicensesDeclared = 0
|
69 |
;
|
69 |
;
|
70 |
|
70 |
|
|
|
71 |
// no products found..
|
|
|
72 |
if(core.products.isEmpty()){
|
|
|
73 |
String result = ""
|
|
|
74 |
+ html.div()
|
|
|
75 |
+ html.br
|
|
|
76 |
+ "It seems that no SPDX files were yet added."
|
|
|
77 |
+ html.br
|
|
|
78 |
+ html.br
|
|
|
79 |
+ "Would you like to "
|
|
|
80 |
+ html.link("create one", "/spdx/create")
|
|
|
81 |
+ " right now?"
|
|
|
82 |
+ html._div;
|
|
|
83 |
request.setAnswer(result);
|
|
|
84 |
return;
|
|
|
85 |
}
|
71 |
|
86 |
|
72 |
// get some statistical data
|
87 |
// get some statistical data
|
73 |
for(Object object : core.products){
|
88 |
for(Object object : core.products){
|
74 |
SPDXfile spdx = (SPDXfile) object;
|
89 |
SPDXfile spdx = (SPDXfile) object;
|
75 |
counterFiles += spdx.fileSection.files.size();
|
90 |
counterFiles += spdx.fileSection.files.size();
|