Skip to content

Commit

Permalink
Merge pull request #287 from spyrkob/WFGP-276_6.4
Browse files Browse the repository at this point in the history
[WFGP-276] Check if the artifact is a ZIP or a JAR archive before extracting schemas
  • Loading branch information
jfdenise authored Mar 25, 2024
2 parents dd21c6b + bc6bae0 commit 1492966
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,9 @@ public void copyArtifact(CopyArtifact copyArtifact, PackageRuntime pkg) throws P
}
IoUtils.copy(jarSrc, jarTarget);
}
if(schemaGroups.contains(artifact.getGroupId())) {
// only attempt to extract schemas if the artifact is a zip archive
if(schemaGroups.contains(artifact.getGroupId())
&& (artifact.getExtension().equals("jar") || artifact.getExtension().equals("zip"))) {
extractSchemas(jarSrc);
}
} catch (IOException e) {
Expand Down

0 comments on commit 1492966

Please sign in to comment.