diff --git a/Build.kt b/Build.kt index fb3eca2..b4c9c65 100644 --- a/Build.kt +++ b/Build.kt @@ -12,7 +12,7 @@ val processor = javaProject { name = "version-processor" group = "com.beust" artifactId = name - version = "0.1" + version = "0.2" directory = "processor" assemble { @@ -28,7 +28,7 @@ val processorExample = javaProject(processor) { name = "example" group = "com.beust" artifactId = name - version = "0.1" + version = "0.2" directory = "example" val processorJar = @@ -46,6 +46,6 @@ val processorExample = javaProject(processor) { } application { - mainClass = "com.beust.apt.example.Example" + mainClass = "com.beust.version.example.Example" } } diff --git a/example/src/main/java/com/beust/version/example/Example.java b/example/src/main/java/com/beust/version/example/Example.java index ef2ee6b..83aff7f 100644 --- a/example/src/main/java/com/beust/version/example/Example.java +++ b/example/src/main/java/com/beust/version/example/Example.java @@ -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); }