diff --git a/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java b/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java index ffb2f71..c015b1a 100644 --- a/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java +++ b/src/bld/java/rife/bld/extension/GeneratedVersionOperationBuild.java @@ -42,8 +42,7 @@ public class GeneratedVersionOperationBuild extends Project { .link("https://javadoc.io/doc/net.sourceforge.pmd/pmd-core/latest/"); publishOperation() - .repositories(MAVEN_LOCAL, - version.isSnapshot() ? repository("rife2-snapshot") : repository("rife2")) + .repositories(MAVEN_LOCAL, version.isSnapshot() ? repository("rife2-snapshot") : repository("rife2")) .info() .groupId("com.uwyn.rife2") .artifactId("bld-generated-version") diff --git a/src/main/java/rife/bld/extension/GeneratedVersion.java b/src/main/java/rife/bld/extension/GeneratedVersion.java index 3f0216d..e545584 100644 --- a/src/main/java/rife/bld/extension/GeneratedVersion.java +++ b/src/main/java/rife/bld/extension/GeneratedVersion.java @@ -28,57 +28,93 @@ import java.io.File; */ @SuppressWarnings("PMD.DataClass") public class GeneratedVersion { - private String className; private File classFile; + private String className; private String packageName; private BaseProject project; private String projectName; private File template; - public String getClassName() { - return className; - } - - public void setClassName(String className) { - this.className = className; - } - + /** + * Returns the class file. + */ public File getClassFile() { return classFile; } - public void setClassFile(File classFile) { - this.classFile = classFile; + /** + * Returns the class name. + */ + public String getClassName() { + return className; } + /** + * Returns the package name. + */ public String getPackageName() { return packageName; } - public void setPackageName(String packageName) { - this.packageName = packageName; - } - + /** + * Returns the project. + */ public BaseProject getProject() { return project; } - public void setProject(BaseProject project) { - this.project = project; - } - + /** + * Returns the project name. + */ public String getProjectName() { return projectName; } - public void setProjectName(String projectName) { - this.projectName = projectName; - } - + /** + * Returns the template. + */ public File getTemplate() { return template; } + /** + * Sets the class file. + */ + public void setClassFile(File classFile) { + this.classFile = classFile; + } + + /** + * Sets the class name. + */ + public void setClassName(String className) { + this.className = className; + } + + /** + * Sets the package name. + */ + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + /** + * Sets the project. + */ + public void setProject(BaseProject project) { + this.project = project; + } + + /** + * Sets the project name. + */ + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Sets the template file. + */ 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 7111ee3..5003bcb 100644 --- a/src/main/java/rife/bld/extension/GeneratedVersionOperation.java +++ b/src/main/java/rife/bld/extension/GeneratedVersionOperation.java @@ -33,7 +33,7 @@ import java.util.logging.Level; import java.util.logging.Logger; /** - * Implements the GeneratedVersionOperation class. + * Generates a project version data class. * * @author Erik C. Thauvin * @since 1.0 @@ -112,6 +112,9 @@ public class GeneratedVersionOperation extends AbstractOperation