|
a/tool/src/spdxlib/DocumentCreate.java |
|
b/tool/src/spdxlib/DocumentCreate.java |
|
... |
|
... |
139 |
filePath = filePath.replace(folderSourceCode.getAbsolutePath(), "");
|
139 |
filePath = filePath.replace(folderSourceCode.getAbsolutePath(), "");
|
140 |
filePath = filePath.replace("\\", "/");
|
140 |
filePath = filePath.replace("\\", "/");
|
141 |
filePath = "." + filePath.replace(thisFile.getName(), "");
|
141 |
filePath = "." + filePath.replace(thisFile.getName(), "");
|
142 |
|
142 |
|
143 |
// the size of this file
|
143 |
// the size of this file
|
144 |
String fileSize = utils.files.humanReadableSize(thisFile.length())
|
144 |
String fileSize = utils.files.humanReadableSize(thisFile.length());
|
|
|
145 |
|
|
|
146 |
// only add up this info when making the size human readable
|
|
|
147 |
if(thisFile.length() > 1000){
|
145 |
+ " ("+ thisFile.length() +" bytes)";
|
148 |
fileSize += " ("+ thisFile.length() +" bytes)";
|
|
|
149 |
}
|
146 |
|
150 |
|
147 |
// do the file identification
|
151 |
// do the file identification
|
148 |
String LOC = "";
|
152 |
String LOC = "";
|
149 |
FileId fileId = new FileId();
|
153 |
FileId fileId = new FileId();
|
150 |
Boolean resulted = fileId.analyze(thisFile);
|
154 |
Boolean resulted = fileId.analyze(thisFile);
|