1
0
Fork 0
mirror of https://github.com/ethauvin/version-processor.git synced 2025-04-25 07:57:12 -07:00
This commit is contained in:
Cedric Beust 2015-11-13 17:45:56 -08:00
parent c2ecbe7cde
commit ae6392aafd

View file

@ -7,8 +7,15 @@ There are two modules in this project:
- The processor (`processor/`)
- The example using the processor (`example/`)
The `processor` project defines an annotation `Version` that lets you specify a version number. When the annotation processor is run, it generates a source file `GeneratedVersion.java` with a static field contains that version number.
The `processor` project defines an annotation `@Version` that lets you specify a version number. When the annotation processor is run, it generates a source file `GeneratedVersion.java` with a static field containing that version number.
The `example` project has a single class `Example` which is annotated with `@Version` and which then displays the value of the version from the `GeneratedVersion` generated class.
Build with `./kobaltw run`.
To build and run the example:
```
./kobaltw run
```