Skip to content

Commit

Permalink
Output files analyzed tag after relationships
Browse files Browse the repository at this point in the history
Fixes #58

Signed-off-by: Gary O'Neall <[email protected]>
  • Loading branch information
goneall committed Jan 18, 2024
1 parent f143464 commit 8a18224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/spdx/tag/CommonCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -722,13 +722,13 @@ private static void printPackage(SpdxPackage pkg, PrintWriter out,
printExternalRef(out, constants, externalRef, documentNamespace);
}
}
printElementAnnotationsRelationships(pkg, out, constants,"PROP_PACKAGE_DECLARED_NAME",
"PROP_PACKAGE_COMMENT");
// Files
if (!pkg.isFilesAnalyzed()) {
// Only print if not the default
println(out, constants.getProperty("PROP_PACKAGE_FILES_ANALYZED") + "false");
}
printElementAnnotationsRelationships(pkg, out, constants,"PROP_PACKAGE_DECLARED_NAME",
"PROP_PACKAGE_COMMENT");
List<SpdxFile> files = new ArrayList<>(pkg.getFiles());
if (!files.isEmpty()) {
Collections.sort(files);
Expand Down

0 comments on commit 8a18224

Please sign in to comment.