org.codehaus.mojo.webstart.generator
Class JarResourcesGenerator

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

public class JarResourcesGenerator
extends AbstractGenerator

Generates a JNLP deployment descriptor.

Author:
ngc, Jerome Lacoste, Kevin Stembridge

Constructor Summary
JarResourcesGenerator(org.apache.maven.project.MavenProject mavenProject, java.io.File resourceLoaderPath, java.lang.String defaultTemplateResourceName, java.io.File outputFile, java.lang.String templateFile, java.util.Collection jarResources, java.lang.String mainClass, java.lang.String webstartJarURL)
          Creates a new JarResources.
 
Method Summary
protected  java.lang.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, setExtraConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarResourcesGenerator

public JarResourcesGenerator(org.apache.maven.project.MavenProject mavenProject,
                             java.io.File resourceLoaderPath,
                             java.lang.String defaultTemplateResourceName,
                             java.io.File outputFile,
                             java.lang.String templateFile,
                             java.util.Collection jarResources,
                             java.lang.String mainClass,
                             java.lang.String webstartJarURL)
Creates a new JarResources.

Parameters:
mavenProject - The Maven project that this generator is being run within.
resourceLoaderPath - used to find the template in conjunction to inputFileTemplatePath
outputFile -
templateFile - relative to resourceLoaderPath
jarResources - The collection of JarResources that will be output in the JNLP file.
mainClass - The fully qualified name of the application's main class.
Method Detail

getDependenciesText

protected java.lang.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-2009. All Rights Reserved.