Added bootjar, war and uberjar command

This commit is contained in:
Erik C. Thauvin 2023-10-27 03:14:16 -07:00
parent 6b12c85535
commit 84407f00cb
2 changed files with 8 additions and 3 deletions

View file

@ -37,6 +37,6 @@ To run the web application tests, issue the following command:
## Creating and launching the executable JAR
```
./bld jar
java -jar build/dist/demoapplication-0.1.0.jar
./bld bootjar
java -jar build/dist/demoapplication-0.1.0-boot.jar
```

View file

@ -39,9 +39,14 @@ public class ApplicationBuild extends WebProject {
}
@BuildCommand(summary = "Creates an executable JAR for the project")
public void jar() throws Exception {
public void bootjar() throws Exception {
new BootJarOperation()
.fromProject(this)
.execute();
}
@BuildCommand(summary = "Creates an executable JAR for the project")
public void uberjar() throws Exception {
bootjar();
}
}