Added bootjar, war and uberjar command
This commit is contained in:
parent
6b12c85535
commit
84407f00cb
2 changed files with 8 additions and 3 deletions
|
@ -37,6 +37,6 @@ To run the web application tests, issue the following command:
|
||||||
## Creating and launching the executable JAR
|
## Creating and launching the executable JAR
|
||||||
|
|
||||||
```
|
```
|
||||||
./bld jar
|
./bld bootjar
|
||||||
java -jar build/dist/demoapplication-0.1.0.jar
|
java -jar build/dist/demoapplication-0.1.0-boot.jar
|
||||||
```
|
```
|
||||||
|
|
|
@ -39,9 +39,14 @@ public class ApplicationBuild extends WebProject {
|
||||||
}
|
}
|
||||||
|
|
||||||
@BuildCommand(summary = "Creates an executable JAR for the project")
|
@BuildCommand(summary = "Creates an executable JAR for the project")
|
||||||
public void jar() throws Exception {
|
public void bootjar() throws Exception {
|
||||||
new BootJarOperation()
|
new BootJarOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@BuildCommand(summary = "Creates an executable JAR for the project")
|
||||||
|
public void uberjar() throws Exception {
|
||||||
|
bootjar();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue