Skip to content

Commit

Permalink
Split on .jar for sub folder prefix.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Dec 24, 2024
1 parent ffa445e commit 060b6a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private Set<File> extractJars(Set<File> jars) {
getProject().delete(jarExpandDir);

jars.forEach(jar -> {
String jarPrefix = jar.getName().split("[-.]")[0];
String jarPrefix = jar.getName().replace(".jar", "");
File jarSubDir = new File(jarExpandDir, jarPrefix);
extractedJars.add(jarSubDir);

Check warning on line 318 in buildSrc/src/main/java/org/opensearch/gradle/precommit/ThirdPartyAuditTask.java

View check run for this annotation

Codecov / codecov/patch

buildSrc/src/main/java/org/opensearch/gradle/precommit/ThirdPartyAuditTask.java#L316-L318

Added lines #L316 - L318 were not covered by tests
FileTree jarFiles = getProject().zipTree(jar);
Expand Down

0 comments on commit 060b6a2

Please sign in to comment.