Skip to content

Commit c25a970

Browse files
authored
O3-3437: Update SDK to bundle SPA frontend into WAR
1 parent 275d4cc commit c25a970

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

maven-plugin/src/main/java/org/openmrs/maven/plugins/BuildDistro.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ private String buildDistro(File targetDirectory, Artifact distroArtifact, Distro
297297
owasDir.mkdir();
298298
downloadOWAs(targetDirectory, distroProperties, owasDir);
299299

300+
spaInstaller.installFromDistroProperties(tempDir, distroProperties, ignorePeerDependencies, overrideReuseNodeCache);
301+
File frontendDir = new File(tempDir, "frontend");
302+
if(frontendDir.exists()) {
303+
frontendDir.renameTo(new File(tempDir, "bundledFrontend"));
304+
}
305+
300306
warfile.addFolder(tempDir, new ZipParameters());
301307
try {
302308
FileUtils.deleteDirectory(tempDir);

0 commit comments

Comments
 (0)