mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-24 23:47:11 -07:00
README.
This commit is contained in:
parent
14c7050926
commit
c2ecbe7cde
1 changed files with 14 additions and 0 deletions
14
README.md
Normal file
14
README.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# A simple annotation processing example
|
||||||
|
|
||||||
|
This project demonstrates a simple annotation processor that is built with [Kobalt](http://beust.com/kobalt).
|
||||||
|
|
||||||
|
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 `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`.
|
Loading…
Add table
Add a link
Reference in a new issue