Added link to build class in README

This commit is contained in:
Erik C. Thauvin 2023-04-03 08:44:38 -07:00
parent 00cd80894d
commit 3fe54858fa
2 changed files with 3 additions and 1 deletions

View file

@ -52,3 +52,5 @@ version.major=1
version.minor=0
version.patch=10
```
[View the Examples Build](https://github.com/rife2/bld-property-file/blob/master/examples/src/bld/java/com/example/PropertyFileExampleBuild.java)

View file

@ -73,7 +73,7 @@ public class PropertyFileExampleBuild extends Project {
// set the minor version to 0 if it doesn't exist
.entry(new Entry("version.minor").defaultValue(0))
// set the patch version to 10 if it doesn't exist, increase by 10
.entry(new Entry("version.patch").defaultValue(0).type(Types.INT).operation(Operations.ADD).value(10))
.entry(new Entry("version.patch").value(10).defaultValue(0).type(Types.INT).operation(Operations.ADD))
// set the build date to the current date
.entry(buildDateEntry)
.execute();