From 2e9c73968c16523a64acbcd998bbcd898cee89d4 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 27 Oct 2023 14:34:34 -0700 Subject: [PATCH] Added bootwar command --- .../com/example/springboot/ApplicationBuild.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/bld/java/com/example/springboot/ApplicationBuild.java b/src/bld/java/com/example/springboot/ApplicationBuild.java index c3fee7c..5fc9b8e 100644 --- a/src/bld/java/com/example/springboot/ApplicationBuild.java +++ b/src/bld/java/com/example/springboot/ApplicationBuild.java @@ -3,6 +3,7 @@ package com.example.springboot; import rife.bld.BuildCommand; import rife.bld.WebProject; import rife.bld.extension.BootJarOperation; +import rife.bld.extension.BootWarOperation; import java.util.List; @@ -45,8 +46,20 @@ public class ApplicationBuild extends WebProject { .execute(); } + @BuildCommand(summary = "Create an executable WAR for the project") + public void bootwar() throws Exception { + new BootWarOperation() + .fromProject(this) + .execute(); + } + @BuildCommand(summary = "Creates an executable JAR for the project") public void uberjar() throws Exception { bootjar(); } + + @BuildCommand(summary = "Create an executable WAR for the project") + public void war() throws Exception { + bootwar(); + } } \ No newline at end of file