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, File resourceLoaderPath, String defaultTemplateResourceName, File outputFile, String templateFile, Collection jarResources, String mainClass, String webstartJarURL)
          Creates a new JarResources.
 
Method Summary
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, 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,
                             File resourceLoaderPath,
                             String defaultTemplateResourceName,
                             File outputFile,
                             String templateFile,
                             Collection jarResources,
                             String mainClass,
                             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 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-2011 Codehaus. All Rights Reserved.