org.codehaus.mojo.webstart.generator
Class VersionXmlGenerator

java.lang.Object
  extended by org.codehaus.mojo.webstart.generator.VersionXmlGenerator

public class VersionXmlGenerator
extends Object

This class generates a version.xml file for a given collection of JarResource objects in the format expected by the JnlpDownloadServlet.

For a full description of the version.xml syntax, refer to the JnlpDownloadServlet Guide

Since:
1.0-alpha-2
Version:
$Revision: 6588 $
Author:
Kevin Stembridge

Constructor Summary
VersionXmlGenerator()
          Creates a new VersionXmlGenerator.
 
Method Summary
 void generate(File outputDir, Collection jarResources)
          Generates a file named version.xml in the given outputDir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionXmlGenerator

public VersionXmlGenerator()
Creates a new VersionXmlGenerator.

Method Detail

generate

public void generate(File outputDir,
                     Collection jarResources)
              throws org.apache.maven.plugin.MojoExecutionException
Generates a file named version.xml in the given outputDir. The generated file will contain resource elements for each of the JarResource objects in the given collection.

Parameters:
outputDir - The directory in which the file will be generated. Must not be null.
jarResources - The collection of JarResources for which a resource element will be created in the generated file.
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs generating the file.


Copyright © 2005-2011 Codehaus. All Rights Reserved.