diff --git a/README.md b/README.md index 2f0e789..a3c1686 100755 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ public void genver() throws Exception { } ``` -```text +```console ./bld compile ``` diff --git a/examples/README.md b/examples/README.md index e43d402..ede07c3 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,5 +1,5 @@ # Compile and Run Example -```plain +```console ./bld compile run ``` diff --git a/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java b/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java index 7baf592..de92063 100644 --- a/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java +++ b/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java @@ -36,7 +36,7 @@ public class GeneratedVersionOperationBuild extends Project { public GeneratedVersionOperationBuild() { pkg = "rife.bld.extension"; name = "GeneratedVersionOperation"; - version = version(0, 9, 3); + version = version(0, 9, 4, "SNAPSHOT"); javaRelease = 17; downloadSources = true; @@ -68,13 +68,24 @@ public class GeneratedVersionOperationBuild extends Project { .artifactId("bld-generated-version") .description("bld Extension to Generate Project Version Data") .url("https://github.com/rife2/generated-version") - .developer(new PublishDeveloper().id("ethauvin").name("Erik C. Thauvin").email("erik@thauvin.net") - .url("https://erik.thauvin.net/")) - .license(new PublishLicense().name("The Apache License, Version 2.0") - .url("http://www.apache.org/licenses/LICENSE-2.0.txt")) - .scm(new PublishScm().connection("scm:git:https://github.com/rife2/generated-version.git") - .developerConnection("scm:git:git@github.com:rife2/generated-version.git") - .url("https://github.com/rife2/generated-version")) + .developer( + new PublishDeveloper() + .id("ethauvin") + .name("Erik C. Thauvin") + .email("erik@thauvin.net") + .url("https://erik.thauvin.net/") + ) + .license( + new PublishLicense() + .name("The Apache License, Version 2.0") + .url("http://www.apache.org/licenses/LICENSE-2.0.txt") + ) + .scm( + new PublishScm() + .connection("scm:git:https://github.com/rife2/generated-version.git") + .developerConnection("scm:git:git@github.com:rife2/generated-version.git") + .url("https://github.com/rife2/generated-version") + ) .signKey(property("sign.key")) .signPassphrase(property("sign.passphrase")); } diff --git a/src/main/java/rife/bld/extension/GeneratedVersion.java b/src/main/java/rife/bld/extension/GeneratedVersion.java index 5f91b33..d893c31 100644 --- a/src/main/java/rife/bld/extension/GeneratedVersion.java +++ b/src/main/java/rife/bld/extension/GeneratedVersion.java @@ -46,6 +46,8 @@ public class GeneratedVersion { /** * Returns the class name. + * + * @return the class name */ public String getClassName() { return className; @@ -53,6 +55,8 @@ public class GeneratedVersion { /** * Returns the destination directory. + * + * @return the destination directory */ public File getDirectory() { return directory; @@ -60,6 +64,8 @@ public class GeneratedVersion { /** * Returns the file extension. + * + * @return the file extension */ public String getExtension() { return extension; @@ -67,6 +73,8 @@ public class GeneratedVersion { /** * Returns the package name. + * + * @return the package name */ public String getPackageName() { return packageName; @@ -74,6 +82,8 @@ public class GeneratedVersion { /** * Returns the project. + * + * @return the project */ public BaseProject getProject() { return project; @@ -81,6 +91,8 @@ public class GeneratedVersion { /** * Returns the project name. + * + * @return the project name */ public String getProjectName() { return projectName; @@ -88,6 +100,8 @@ public class GeneratedVersion { /** * Returns the template. + * + * @return the template */ public File getTemplate() { return template; @@ -95,6 +109,8 @@ public class GeneratedVersion { /** * Sets the class file. + * + * @param classFile the class file */ public void setClassFile(File classFile) { this.classFile = classFile; @@ -102,6 +118,8 @@ public class GeneratedVersion { /** * Sets the class name. + * + * @param className the class name */ public void setClassName(String className) { this.className = className; @@ -109,6 +127,8 @@ public class GeneratedVersion { /** * Set the destination directory. + * + * @param directory the destination directory */ public void setDirectory(File directory) { this.directory = directory; @@ -116,6 +136,8 @@ public class GeneratedVersion { /** * Sets the file extension. (Default is: {@code .java}) + * + * @param extension the file extension */ public void setExtension(String extension) { this.extension = extension; @@ -123,6 +145,8 @@ public class GeneratedVersion { /** * Sets the package name. + * + * @param packageName the package name */ public void setPackageName(String packageName) { this.packageName = packageName; @@ -130,6 +154,8 @@ public class GeneratedVersion { /** * Sets the project. + * + * @param project the project */ public void setProject(BaseProject project) { this.project = project; @@ -137,6 +163,8 @@ public class GeneratedVersion { /** * Sets the project name. + * + * @param projectName the project name */ public void setProjectName(String projectName) { this.projectName = projectName; @@ -144,6 +172,8 @@ public class GeneratedVersion { /** * Sets the template file. + * + * @param template the template */ public void setTemplate(File template) { this.template = template; diff --git a/src/main/java/rife/bld/extension/GeneratedVersionOperation.java b/src/main/java/rife/bld/extension/GeneratedVersionOperation.java index 254738f..dcfcf9e 100644 --- a/src/main/java/rife/bld/extension/GeneratedVersionOperation.java +++ b/src/main/java/rife/bld/extension/GeneratedVersionOperation.java @@ -53,6 +53,9 @@ public class GeneratedVersionOperation extends AbstractOperation