org.codehaus.mojo.webstart.generator
Class VersionXmlGenerator
java.lang.Object
org.codehaus.mojo.webstart.generator.VersionXmlGenerator
public class VersionXmlGenerator
- extends java.lang.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
Method Summary |
void |
generate(java.io.File outputDir,
java.util.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 |
VersionXmlGenerator
public VersionXmlGenerator()
- Creates a new
VersionXmlGenerator
.
generate
public void generate(java.io.File outputDir,
java.util.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-2009. All Rights Reserved.