Skip to content

Compare tool removes common part of filename #67

Closed

Description

@nicoweidner

This behavior may be intended (if so, ignore...), but I was pretty confused by it when trying out the tools, so I wanted to bring it up anyway.

I ran the following command to compare two of the example documents:

$ java -jar tools-java-1.1.0-jar-with-dependencies.jar CompareDocs compareOutput.xlsx ../testResources/SPDXJSONExample-v2.2.spdx.json ../testResources/SPDXJSONExample-v2.3.spdx.json

In the resulting spreadsheet, the two names were shown as 2.spdx.json and 3.spdx.json; the common part in the beginning was most likely trimmed by the normalizeDocNames function.

Activity

  1. goneall commented on Sep 9, 2022

    @goneall
    Member

    @nicoweidner - It's been a while, but I don't think this is intentional. It would be better to just remove the common portions of the path before the filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions