Skip to content

Commit

Permalink
O3-3437: Update SDK to bundle SPA frontend into WAR
Browse files Browse the repository at this point in the history
  • Loading branch information
wikumChamith committed Aug 2, 2024
1 parent 393b7ba commit 3331aa5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ private String buildDistro(File targetDirectory, Artifact distroArtifact, Distro
owasDir.mkdir();
downloadOWAs(targetDirectory, distroProperties, owasDir);

spaInstaller.installFromDistroProperties(tempDir, distroProperties, ignorePeerDependencies, overrideReuseNodeCache);
File frontendDir = new File(tempDir, "frontend");
if(frontendDir.exists()) {
frontendDir.renameTo(new File(tempDir, "bundledFrontend"));
}

warfile.addFolder(tempDir, new ZipParameters());
try {
FileUtils.deleteDirectory(tempDir);
Expand Down

0 comments on commit 3331aa5

Please sign in to comment.