mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-24 23:47:11 -07:00
0.2.
This commit is contained in:
parent
dca5e18ed3
commit
20c0fefa2a
2 changed files with 8 additions and 7 deletions
|
@ -6,16 +6,17 @@ import com.beust.version.Version;
|
|||
class Example {
|
||||
public static void main(String[] argv) throws Exception {
|
||||
// Set this to true and launch this class if you want to debug the annotation processor.
|
||||
boolean debug = false;
|
||||
boolean debug = true;
|
||||
if (debug) {
|
||||
String root = "/Users/cbeust/java/java-apt-example/";
|
||||
String root = "/c/Users/cbeust/java/version-processor/";
|
||||
String[] args = new String[]{
|
||||
"-classpath",
|
||||
root + "processor/kobaltBuild/libs/processor-0.1.jar",
|
||||
"processor/kobaltBuild/libs/version-processor-0.2.jar",
|
||||
"-processor", "com.beust.version.VersionProcessor",
|
||||
root + "example/src/main/java/com/beust/apt/example/Example.java"
|
||||
"example/src/main/java/com/beust/version/example/Example.java"
|
||||
};
|
||||
// You need $JDK_HOME/lib/tools.jar for this
|
||||
// System.out.println("Launching in " + new File(".").getAbsolutePath() + "\n " + Arrays.toString(args));
|
||||
// com.sun.tools.javac.Main.main(args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue