Added WAR operation
This commit is contained in:
parent
cae601cf6f
commit
287064dec4
7 changed files with 511 additions and 290 deletions
6
examples/.idea/vcs.xml
generated
Normal file
6
examples/.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -3,6 +3,7 @@ package com.example.demo;
|
|||
import rife.bld.BuildCommand;
|
||||
import rife.bld.WebProject;
|
||||
import rife.bld.extension.BootJarOperation;
|
||||
import rife.bld.extension.BootWarOperation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.logging.ConsoleHandler;
|
||||
|
@ -49,9 +50,21 @@ public class DemoApplicationBuild 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();
|
||||
}
|
||||
|
||||
@BuildCommand(summary = "Creates WAR for the project")
|
||||
public void war() throws Exception {
|
||||
new BootWarOperation()
|
||||
.fromProject(this)
|
||||
.execute();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue