public static void copySpreadsheetToSPDXAnalysis(SPDXSpreadsheet ss, SPDXDocument analysis)
     throws SpreadsheetException, InvalidSPDXAnalysisException {
   analysis.createSpdxAnalysis(
       ss.getPackageInfoSheet().getPackageInfo(1).getUrl() + "#SPDXANALYSIS");
   copyOrigins(ss.getOriginsSheet(), analysis);
   analysis.createSpdxPackage();
   copyNonStdLicenses(ss.getNonStandardLicensesSheet(), analysis);
   // note - non std licenses must be added first so that the text is available
   copyPackageInfo(ss.getPackageInfoSheet(), analysis.getSpdxPackage());
   copyPerFileInfo(ss.getPerFileSheet(), analysis.getSpdxPackage());
   copyReviewerInfo(ss.getReviewersSheet(), analysis);
 }
Esempio n. 2
0
/**