mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-28 09:08:13 -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;
|
import java.io.File;
|
||||||
|
|
||||||
@Version("1.2")
|
@Version("1.3")
|
||||||
class Example {
|
class Example {
|
||||||
public Example() {
|
public Example() {
|
||||||
System.out.println("Instantiating Example");
|
System.out.println("Instantiating Example");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] argv) throws Exception {
|
public static void main(String[] argv) throws Exception {
|
||||||
String[] args = new String[] {
|
// Uncomment these lines and launch this class to debug the annotation processor.
|
||||||
// "-proc:only",
|
// String[] args = new String[] {
|
||||||
"-classpath", "/Users/beust/home/java/java-apt-example/processor/kobaltBuild/libs/processor-0.1.jar",
|
//// "-proc:only",
|
||||||
"-processor", "com.beust.apt.processor.MainProcessor",
|
// "-classpath", "/Users/beust/home/java/java-apt-example/processor/kobaltBuild/libs/processor-0.1.jar",
|
||||||
"/Users/beust/java/java-apt-example/example/src/main/java/com/beust/apt/example/Example.java"
|
// "-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);
|
// };
|
||||||
|
// com.sun.tools.javac.Main.main(args);
|
||||||
|
|
||||||
File file = new File(".");
|
File file = new File(".");
|
||||||
System.out.println("Instantiating Example()");
|
System.out.println("Version generated: " + GeneratedVersion.VERSION);
|
||||||
new Example();
|
new Example();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue