|
a/tool/src/spdxlib/DocumentCreate.java |
|
b/tool/src/spdxlib/DocumentCreate.java |
|
... |
|
... |
171 |
// at least one Windows and Linux should be added when available
|
171 |
// at least one Windows and Linux should be added when available
|
172 |
// String fileModified = utils.time.getTimeFromLong(file.lastModified());
|
172 |
// String fileModified = utils.time.getTimeFromLong(file.lastModified());
|
173 |
|
173 |
|
174 |
String temp =
|
174 |
String temp =
|
175 |
addSection("File")
|
175 |
addSection("File")
|
176 |
+ addText("FileName: " + thisFile.getName())
|
176 |
+ addText("FileName: "
|
|
|
177 |
// in my conscience, path has no place on file name
|
|
|
178 |
// and only makes difficult to identify the name
|
|
|
179 |
// uncomment for strict compatibility with SPDX
|
|
|
180 |
//+ filePath
|
|
|
181 |
+ thisFile.getName())
|
|
|
182 |
// not needed if standard is followed
|
177 |
+ addText("FilePath: " + filePath)
|
183 |
+ addText("FilePath: " + filePath)
|
178 |
+ addText("FileType: OTHER")
|
184 |
+ addText("FileType: OTHER")
|
179 |
+ addText("FileChecksum: SHA1: "
|
185 |
+ addText("FileChecksum: SHA1: "
|
180 |
+ utils.Checksum.generateFileChecksum("SHA-1", thisFile))
|
186 |
+ utils.Checksum.generateFileChecksum("SHA-1", thisFile))
|
181 |
+ addText("FileChecksum: SHA256: "
|
187 |
+ addText("FileChecksum: SHA256: "
|