Added build command values

This commit is contained in:
Erik C. Thauvin 2024-06-23 10:43:25 -07:00
parent 09cdfea6b8
commit f2eeb1f1f9
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 19 additions and 5 deletions

View file

@ -3,3 +3,17 @@
```console ```console
./bld compile run ./bld compile run
``` ```
# Update Version Properties
```console
./bld update-major run
./bld update-minor run
./bld update-patch run
```
# Delete Version Properties
```console
./bld delete-version run
```

View file

@ -50,7 +50,7 @@ public class PropertyFileExampleBuild extends Project {
new PropertyFileExampleBuild().start(args); new PropertyFileExampleBuild().start(args);
} }
@BuildCommand(summary = "Updates major version") @BuildCommand(value = "update-major", summary = "Updates major version")
public void updateMajor() throws Exception { public void updateMajor() throws Exception {
new PropertyFileOperation() new PropertyFileOperation()
.fromProject(this) .fromProject(this)
@ -66,7 +66,7 @@ public class PropertyFileExampleBuild extends Project {
.execute(); .execute();
} }
@BuildCommand(summary = "Updates minor version") @BuildCommand(value = "update-minor", summary = "Updates minor version")
public void updateMinor() throws Exception { public void updateMinor() throws Exception {
new PropertyFileOperation() new PropertyFileOperation()
.fromProject(this) .fromProject(this)
@ -82,7 +82,7 @@ public class PropertyFileExampleBuild extends Project {
.execute(); .execute();
} }
@BuildCommand(summary = "Updates patch version") @BuildCommand(value = "update-patch", summary = "Updates patch version")
public void updatePatch() throws Exception { public void updatePatch() throws Exception {
new PropertyFileOperation() new PropertyFileOperation()
.fromProject(this) .fromProject(this)
@ -98,7 +98,7 @@ public class PropertyFileExampleBuild extends Project {
.execute(); .execute();
} }
@BuildCommand(summary = "Updates the release") @BuildCommand(value = "update-release", summary = "Updates the release")
public void updateRelease() throws Exception { public void updateRelease() throws Exception {
new PropertyFileOperation() new PropertyFileOperation()
.fromProject(this) .fromProject(this)
@ -110,7 +110,7 @@ public class PropertyFileExampleBuild extends Project {
.execute(); .execute();
} }
@BuildCommand(summary = "Delete version properties") @BuildCommand(value = "delete-version", summary = "Delete version properties")
public void deleteVersion() throws Exception { public void deleteVersion() throws Exception {
new PropertyFileOperation() new PropertyFileOperation()
.fromProject(this) .fromProject(this)