public abstract class AbstractGenerator<C extends GeneratorExtraConfig> extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractGenerator(org.apache.maven.plugin.logging.Log log,
GeneratorTechnicalConfig config,
C extraConfig) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.velocity.VelocityContext |
createAndPopulateContext()
Creates a Velocity context and populates it with replacement values
for our pre-defined placeholders.
|
void |
generate()
Generate the JNLP file.
|
protected abstract String |
getArgumentsText() |
protected abstract String |
getDependenciesText()
Subclasses must implement this method to return the text that should
replace the $dependencies placeholder in the JNLP template.
|
C |
getExtraConfig() |
protected String |
indentText(int level,
String text)
Add
level space caracteres at the begin of each lines of the
given text . |
public static final String EOL
protected AbstractGenerator(org.apache.maven.plugin.logging.Log log, GeneratorTechnicalConfig config, C extraConfig)
public C getExtraConfig()
protected abstract String getDependenciesText()
protected org.apache.velocity.VelocityContext createAndPopulateContext()
protected abstract String getArgumentsText()
Copyright © 2005–2016 MojoHaus. All rights reserved.