Class ReadmeHtmlVelocityDelegate
- java.lang.Object
-
- org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegate
-
public class ReadmeHtmlVelocityDelegate extends Object
This class' purpose is to generate theREADME.htmlthat moves along with the release for the sake of downloading the release from the distribution area.- Since:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderA builder class for instantiation of theReadmeHtmlVelocityDelegate.
-
Field Summary
Fields Modifier and Type Field Description private StringartifactIdThis is supposed to represent the maven artifactId.private StringsiteUrlThe url of the site that gets set into theREADME.html.private static StringTEMPLATEThe location of the velocity template for this class.private StringversionThis is supposed to represent the maven version of the release.
-
Constructor Summary
Constructors Modifier Constructor Description privateReadmeHtmlVelocityDelegate(String artifactId, String version, String siteUrl)The private constructor to be used by theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderbuilder()Gets theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderfor constructing theReadmeHtmlVelocityDelegate.Writerrender(Writer writer)Renders theREADME.vmvelocity template with the variables constructed with theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder.
-
-
-
Field Detail
-
TEMPLATE
private static final String TEMPLATE
The location of the velocity template for this class.- See Also:
- Constant Field Values
-
artifactId
private final String artifactId
This is supposed to represent the maven artifactId.
-
version
private final String version
This is supposed to represent the maven version of the release.
-
-
Constructor Detail
-
ReadmeHtmlVelocityDelegate
private ReadmeHtmlVelocityDelegate(String artifactId, String version, String siteUrl)
The private constructor to be used by theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder.- Parameters:
artifactId- sets theartifactId.version- sets theversion.siteUrl- sets thesiteUrl.
-
-
Method Detail
-
builder
public static ReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder builder()
Gets theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilderfor constructing theReadmeHtmlVelocityDelegate.
-
render
public Writer render(Writer writer)
Renders theREADME.vmvelocity template with the variables constructed with theReadmeHtmlVelocityDelegate.ReadmeHtmlVelocityDelegateBuilder.
-
-