public class Generator extends Object
| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
generate(Collection<Path> modelPaths,
Path target)
Generates a site based on the
modelPaths in the target directory. |
static Path |
generate(Collection<Path> modelPaths,
Path target,
String displayName,
String displayVersion)
Generates a site based on the
modelPaths in the target directory. |
static Path |
generate(Path modelPath,
Path target)
Generates a site based on the
modelPath in the target directory. |
static Path |
generate(Path modelPath,
Path target,
String displayName,
String displayVersion)
Generates a site based on the
modelPath in the target directory. |
public static Path generate(Path modelPath, Path target) throws IOException
modelPath in the target directory.
If the modelPath is a directory it must contain a file named version.txt. This file is
delimited with : on each line where the first value is the product name, the second value is the version
and the third value is the path to the DMR file.
Example file contents:
WildFly:18.0.0.Final:./WildFly-18.0.0.Final.dmr
WildFly:17.0.0.Final:WildFly-17.0.0.Final.dmr
modelPath - the path to the model file or a directory with a verions.txt filetarget - the target directory to generate the site inIOException - if an error occurs generating the sitepublic static Path generate(Path modelPath, Path target, String displayName, String displayVersion) throws IOException
modelPath in the target directory.
If the modelPath is a directory it must contain a file named version.txt. This file is
delimited with : on each line where the first value is the product name, the second value is the version
and the third value is the path to the DMR file.
Example file contents:
WildFly:18.0.0.Final:./WildFly-18.0.0.Final.dmr
WildFly:17.0.0.Final:WildFly-17.0.0.Final.dmr
Note the displayName and displayVersion are only used if the modulePath is not a
directory. If the module path is a directory the name and version are resolved from the version.txt file.
modelPath - the path to the model file or a directory with a verions.txt filetarget - the target directory to generate the site indisplayName - the name that should be used for the display, or null to resolve the display namedisplayVersion - the version that should be used for the display, or null to resolve the display
versionIOException - if an error occurs generating the sitepublic static Path generate(Collection<Path> modelPaths, Path target) throws IOException
modelPaths in the target directory.
If any of the modelPaths are directories they must contain a file named version.txt. This file is
delimited with : on each line where the first value is the product name, the second value is the version
and the third value is the path to the DMR file.
Example file contents:
WildFly:18.0.0.Final:./WildFly-18.0.0.Final.dmr
WildFly:17.0.0.Final:WildFly-17.0.0.Final.dmr
modelPaths - the paths to processtarget - the target directory to generate the site inIOException - if an error occurs generating the sitepublic static Path generate(Collection<Path> modelPaths, Path target, String displayName, String displayVersion) throws IOException
modelPaths in the target directory.
If any of the modelPaths are directories they must contain a file named version.txt. This file is
delimited with : on each line where the first value is the product name, the second value is the version
and the third value is the path to the DMR file.
Example file contents:
WildFly:18.0.0.Final:./WildFly-18.0.0.Final.dmr
WildFly:17.0.0.Final:WildFly-17.0.0.Final.dmr
Note the displayName and displayVersion are only used if the module path is not a
directory. If the module path is a directory the name and version are resolved from the version.txt file.
modelPaths - the paths to processtarget - the target directory to generate the site indisplayName - the name that should be used for the display, or null to resolve the display namedisplayVersion - the version that should be used for the display, or null to resolve the display
versionIOException - if an error occurs generating the siteCopyright © 2023 JBoss by Red Hat. All rights reserved.