[java-mvn-enforcer] 01/02: Fix typo and also clear uo use of 'key' which should have been 'signature
Rod Widdowson
rdw at steadingsoftware.com
Mon Jan 23 16:39:00 UTC 2023
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-mvn-enforcer.
View the commit online:
http://git.shibboleth.net/view/?p=java-mvn-enforcer.git;a=commit;h=0936b530b4f5590d96afef1627ea0628237a7a96
commit 0936b530b4f5590d96afef1627ea0628237a7a96
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jan 23 16:31:32 2023 +0000
Fix typo and also clear uo use of 'key' which should have been 'signature
---
.../java/net/shibboleth/mvn/enforcer/impl/BaseSigChecker.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/BaseSigChecker.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/BaseSigChecker.java
index bf4f6c3..b995eb0 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/BaseSigChecker.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/BaseSigChecker.java
@@ -163,27 +163,27 @@ public class BaseSigChecker {
path = null;
}
if (path == null || !Files.exists(path)) {
- log.info("Could not find key for {}, trying classpath store.", artifact);
+ log.info("Could not find signature for {}, trying classpath store.", artifact);
final String name = ProjectPomContext.CLASSPATH_ROOT + "localSignatures/" + artifact.toString() + ".jar.asc";
try (final InputStream stream = getProjectContext().getEnforcerLoader().getResourceAsStream(name)) {
if (stream == null) {
- log.error("Key for {} no found in classpath store", artifact);
+ log.error("Signature for {} not found in classpath store", artifact);
return null;
}
final Signature sig = GPGKeyRing.signatureOf(stream);
report.format("%-30s: %-14s Signature not available. Loaded from classpath store\n",
artifact.getArtifactId(), artifact.getVersion());
- log.info("Key for {} found in classpath store.", artifact);
+ log.info("Signature for {} found in classpath store.", artifact);
return sig;
} catch (final Throwable e) {
- log.error("Could not load key from classpath store:", e);
+ log.error("Could not load signature from classpath store:", e);
return null;
}
}
try (final InputStream stream = new BufferedInputStream(new FileInputStream(path.toFile()))) {
return GPGKeyRing.signatureOf(stream);
} catch (final IOException e) {
- log.error("Could not load key from store", e);
+ log.error("Could not load signature from store", e);
return null;
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list