diff --git a/.idea/misc.xml b/.idea/misc.xml index b5b996d..cc0d554 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -17,6 +17,8 @@ + + diff --git a/README.md b/README.md index 68d7a4e..5a6ed7e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ To access the web application services: ``` curl localhost:8080/actuator/health curl localhost:8080/actuator/info -curl localhost:8080/actuator/shutdown +curl -X POST localhost:8080/actuator/shutdown ``` ## Testing the Application @@ -34,9 +34,16 @@ To run the web application tests, issue the following command: ./bld test ``` -## Creating and launching the executable JAR +## Creating and launching the executable Java Archive (JAR) ``` ./bld bootjar java -jar build/dist/demoapplication-0.1.0-boot.jar ``` + +## Creating and launching the executable Web Archive (WAR) + +``` +./bld bootwa +java -jar build/dist/demoapplication-0.1.0-boot.war +``` diff --git a/src/bld/java/com/example/springboot/ApplicationBuild.java b/src/bld/java/com/example/springboot/ApplicationBuild.java index 5fc9b8e..f20104a 100644 --- a/src/bld/java/com/example/springboot/ApplicationBuild.java +++ b/src/bld/java/com/example/springboot/ApplicationBuild.java @@ -52,14 +52,4 @@ public class ApplicationBuild extends WebProject { .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