public class VersionXmlGenerator extends Object
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
Constructor and Description |
---|
VersionXmlGenerator(String encoding)
Creates a new
VersionXmlGenerator . |
Modifier and Type | Method and Description |
---|---|
void |
generate(File outputDir,
Collection<ResolvedJarResource> jarResources)
Generates a file named
version.xml in the given outputDir . |
public VersionXmlGenerator(String encoding)
VersionXmlGenerator
.encoding
- encoding used to write version.xml filepublic void generate(File outputDir, Collection<ResolvedJarResource> jarResources) throws org.apache.maven.plugin.MojoExecutionException
version.xml
in the given outputDir
.
The generated file will contain resource elements for each of the JarResource
objects in the given collection.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.org.apache.maven.plugin.MojoExecutionException
- if an error occurs generating the file.Copyright © 2005–2016 MojoHaus. All rights reserved.