mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-24 15:37:12 -07:00
0.2.
This commit is contained in:
parent
dca5e18ed3
commit
20c0fefa2a
2 changed files with 8 additions and 7 deletions
6
Build.kt
6
Build.kt
|
@ -12,7 +12,7 @@ val processor = javaProject {
|
||||||
name = "version-processor"
|
name = "version-processor"
|
||||||
group = "com.beust"
|
group = "com.beust"
|
||||||
artifactId = name
|
artifactId = name
|
||||||
version = "0.1"
|
version = "0.2"
|
||||||
directory = "processor"
|
directory = "processor"
|
||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
|
@ -28,7 +28,7 @@ val processorExample = javaProject(processor) {
|
||||||
name = "example"
|
name = "example"
|
||||||
group = "com.beust"
|
group = "com.beust"
|
||||||
artifactId = name
|
artifactId = name
|
||||||
version = "0.1"
|
version = "0.2"
|
||||||
directory = "example"
|
directory = "example"
|
||||||
|
|
||||||
val processorJar =
|
val processorJar =
|
||||||
|
@ -46,6 +46,6 @@ val processorExample = javaProject(processor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClass = "com.beust.apt.example.Example"
|
mainClass = "com.beust.version.example.Example"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,16 +6,17 @@ import com.beust.version.Version;
|
||||||
class Example {
|
class Example {
|
||||||
public static void main(String[] argv) throws Exception {
|
public static void main(String[] argv) throws Exception {
|
||||||
// Set this to true and launch this class if you want to debug the annotation processor.
|
// Set this to true and launch this class if you want to debug the annotation processor.
|
||||||
boolean debug = false;
|
boolean debug = true;
|
||||||
if (debug) {
|
if (debug) {
|
||||||
String root = "/Users/cbeust/java/java-apt-example/";
|
String root = "/c/Users/cbeust/java/version-processor/";
|
||||||
String[] args = new String[]{
|
String[] args = new String[]{
|
||||||
"-classpath",
|
"-classpath",
|
||||||
root + "processor/kobaltBuild/libs/processor-0.1.jar",
|
"processor/kobaltBuild/libs/version-processor-0.2.jar",
|
||||||
"-processor", "com.beust.version.VersionProcessor",
|
"-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
|
// 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);
|
// com.sun.tools.javac.Main.main(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue