Skip to content

Commit

Permalink
[WFGP-276] Check if the artifact is a ZIP archive before extracting s…
Browse files Browse the repository at this point in the history
…chemas
  • Loading branch information
spyrkob committed Mar 25, 2024
1 parent dd21c6b commit bc6bae0
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 bc6bae0

Please sign in to comment.