org.codehaus.mojo.webstart.generator
Class ExtensionGenerator

java.lang.Object
  extended by org.codehaus.mojo.webstart.generator.AbstractGenerator
      extended by org.codehaus.mojo.webstart.generator.ExtensionGenerator

public class ExtensionGenerator
extends AbstractGenerator

To generate an extension jnlp file.

Author:
chemit

Constructor Summary
ExtensionGenerator(org.apache.maven.project.MavenProject mavenProject, AbstractJnlpMojo task, JnlpExtension extension, String defaultTemplateResourceName, File resourceLoaderPath, File outputFile, String inputFileTemplatePath, String mainClass, String webstartJarURL)
           
 
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 org.codehaus.mojo.webstart.generator.AbstractGenerator
generate, indentText, setExtraConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionGenerator

public ExtensionGenerator(org.apache.maven.project.MavenProject mavenProject,
                          AbstractJnlpMojo task,
                          JnlpExtension extension,
                          String defaultTemplateResourceName,
                          File resourceLoaderPath,
                          File outputFile,
                          String inputFileTemplatePath,
                          String mainClass,
                          String webstartJarURL)
Parameters:
mavenProject -
task -
extension -
defaultTemplateResourceName -
resourceLoaderPath - used to find the template in conjunction to inputFileTemplatePath
outputFile -
inputFileTemplatePath - relative to resourceLoaderPath
mainClass -
webstartJarURL -
Method Detail

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

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.


Copyright © 2005-2010 Codehaus. All Rights Reserved.