mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-28 01:08:11 -07:00
Update
This commit is contained in:
parent
ebb8c3503a
commit
72ed28c902
7 changed files with 32 additions and 17 deletions
|
@ -2,14 +2,25 @@ package com.beust.apt.example;
|
|||
|
||||
import com.beust.apt.processor.Version;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@Version("1.2")
|
||||
class Example {
|
||||
public Example() {
|
||||
System.out.println("Instantiating Example");
|
||||
}
|
||||
|
||||
public static void main(String[] argv) {
|
||||
public static void main(String[] argv) throws Exception {
|
||||
String[] args = new String[] {
|
||||
// "-proc:only",
|
||||
"-classpath", "/Users/beust/home/java/java-apt-example/processor/kobaltBuild/libs/processor-0.1.jar",
|
||||
"-processor", "com.beust.apt.processor.MainProcessor",
|
||||
"/Users/beust/java/java-apt-example/example/src/main/java/com/beust/apt/example/Example.java"
|
||||
};
|
||||
com.sun.tools.javac.Main.main(args);
|
||||
|
||||
File file = new File(".");
|
||||
System.out.println("Instantiating Example()");
|
||||
new Example();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue