Added WAR operation

This commit is contained in:
Erik C. Thauvin 2023-10-27 03:13:06 -07:00
parent cae601cf6f
commit 287064dec4
7 changed files with 511 additions and 290 deletions

6
examples/.idea/vcs.xml generated Normal file
View 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>

View file

@ -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();
}
}