org.codehaus.mojo.webstart.generator
Class Generator
java.lang.Object
org.codehaus.mojo.webstart.generator.AbstractGenerator
org.codehaus.mojo.webstart.generator.Generator
public class Generator
- extends AbstractGenerator
Generates a JNLP deployment descriptor
- Author:
- ngc, Jerome Lacoste
|
Method Summary |
protected org.apache.velocity.VelocityContext |
createAndPopulateContext()
Creates a Velocity context and populates it with replacement values
for our pre-defined placeholders. |
protected String |
getDependenciesText()
Subclasses must implement this method to return the text that should
replace the $dependencies placeholder in the JNLP template. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Generator
public Generator(org.apache.maven.project.MavenProject mavenProject,
AbstractJnlpMojo task,
String defaultTemplateResourceName,
File resourceLoaderPath,
File outputFile,
String inputFileTemplatePath,
String mainClass,
String webstartJarURL)
- Parameters:
mavenProject - task - resourceLoaderPath - used to find the template in conjunction to inputFileTemplatePathdefaultTemplateResourceName - outputFile - inputFileTemplatePath - relative to resourceLoaderPathmainClass - webstartJarURL -
getDependenciesText
protected String getDependenciesText()
- Subclasses must implement this method to return the text that should
replace the $dependencies placeholder in the JNLP template.
- Specified by:
getDependenciesText in class AbstractGenerator
- Returns:
- The dependencies text, never null.
createAndPopulateContext
protected org.apache.velocity.VelocityContext createAndPopulateContext()
- Description copied from class:
AbstractGenerator
- Creates a Velocity context and populates it with replacement values
for our pre-defined placeholders.
- Overrides:
createAndPopulateContext in class AbstractGenerator
- Returns:
- Returns a velocity context with system and maven properties added
Copyright © 2005-2009 Codehaus. All Rights Reserved.