You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/07/31 13:44:01 UTC
[commons-release-plugin] branch master updated: Normalize test to
lower case.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-release-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 250f9f7 Normalize test to lower case.
250f9f7 is described below
commit 250f9f77ee493484b2179d8f3456ed52ad263eab
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 31 09:43:57 2019 -0400
Normalize test to lower case.
---
.../release/plugin/mojos/CommonsDistributionDetachmentMojo.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
index 058e644..d79368d 100755
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -25,6 +25,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Set;
import org.apache.commons.codec.digest.DigestUtils;
@@ -215,7 +216,7 @@ public class CommonsDistributionDetachmentMojo extends AbstractMojo {
*/
private void hashArtifacts() throws MojoExecutionException {
for (final Artifact artifact : detachedArtifacts) {
- if (!artifact.getFile().getName().contains("asc")) {
+ if (!artifact.getFile().getName().toLowerCase(Locale.ROOT).contains("asc")) {
final String artifactKey = getArtifactKey(artifact);
try {
String digest;