Skip to content

Commit

Permalink
Merge pull request #5351 from bjhargrave/issues/5349
Browse files Browse the repository at this point in the history
maven: Use actual file name for jar file type test
  • Loading branch information
bjhargrave committed Aug 19, 2022
2 parents 0f84dc5 + b3dcf38 commit 60392b5
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -302,8 +302,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
builder.updateModified(cpeJar.lastModified(), cpe.getPath());
buildpath.add(cpeJar);
} else {
if (!artifact.getType()
.equals("jar")) {
if (!cpe.getName().endsWith(".jar")) {
/*
* Check if it is a valid zip file. We don't create a
* Jar object here because we want to avoid the cost of
Expand Down

0 comments on commit 60392b5

Please sign in to comment.