mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-24 23:47:11 -07:00
Comment.
This commit is contained in:
parent
e263f17424
commit
ea7594c5fc
1 changed files with 10 additions and 9 deletions
|
@ -4,23 +4,24 @@ import com.beust.apt.processor.Version;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
@Version("1.2")
|
||||
@Version("1.3")
|
||||
class Example {
|
||||
public Example() {
|
||||
System.out.println("Instantiating Example");
|
||||
}
|
||||
|
||||
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);
|
||||
// Uncomment these lines and launch this class to debug the annotation processor.
|
||||
// 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()");
|
||||
System.out.println("Version generated: " + GeneratedVersion.VERSION);
|
||||
new Example();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue