Suggestion: make jtdiff more flexible on summary file naming
Tiago Daitx
tiago.daitx at canonical.com
Mon Nov 16 15:10:24 UTC 2020
Hi,
Currently jtdift is very strict about the naming of a summary.txt
file. In src/share/classes/com/sun/javatest/diff/ReportReader.java it
uses file.getName().equals(SUMMARY_TXT) twice. Is there a particular
reason for it being that strict about the file name?
Assuming there is no need for it to be so strict, would it be
acceptable to make it a tad more flexible? My first suggestion would
be replacing the equals with endsWith(). And the second one would be
adding some extra logic (system/java property, command line argument)
that will either ignore the 'equals()' check or use something else
instead.
As for a use case, I don't have anything particularly strong on this.
In some situations I find it easier to manage files with a particular
naming convention than having each of them in their own separate
directories.
Best regards,
Tiago
--
Tiago Stürmer Daitx
Software Engineer
tiago.daitx at canonical.com
PGP Key: 4096R/F5B213BE (hkp://keyserver.ubuntu.com)
Fingerprint = 45D0 FE5A 8109 1E91 866E 8CA4 1931 8D5E F5B2 13BE
More information about the jtreg-dev
mailing list