1
0
Fork 0
mirror of https://github.com/ethauvin/version-processor.git synced 2025-04-24 15:37:12 -07:00
This commit is contained in:
Cedric Beust 2015-11-14 17:10:42 -08:00
parent dca5e18ed3
commit 20c0fefa2a
2 changed files with 8 additions and 7 deletions

View file

@ -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"
}
}

View file

@ -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);
}