public class DefaultImageBuilder extends Object implements ImageBuilder
| Constructor and Description |
|---|
DefaultImageBuilder(boolean genBom,
Path root)
Default image builder constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutableImage |
getExecutableImage()
Gets the executable image that is generated.
|
static ExecutableImage |
getExecutableImage(Path root) |
DataOutputStream |
getJImageOutputStream()
The OutputStream to store the jimage file.
|
protected void |
prepareApplicationFiles(Pool imageContent,
Set<String> modules)
Generates launcher scripts.
|
void |
storeFiles(Pool files,
String bom)
Store the external files.
|
void |
storeFiles(Pool files,
String bom,
Properties release)
Store the external files.
|
public DefaultImageBuilder(boolean genBom,
Path root)
throws IOException
genBom - true, generates a bom file.root - The image root directory.IOExceptionpublic void storeFiles(Pool files, String bom, Properties release)
ImageBuilderstoreFiles in interface ImageBuilderfiles - Pool of module content.bom - The options used to build the image file.release - the release propertiespublic void storeFiles(Pool files, String bom)
ImageBuilderstoreFiles in interface ImageBuilderfiles - Pool of module content.bom - The options used to build the image file.protected void prepareApplicationFiles(Pool imageContent, Set<String> modules) throws IOException
imageContent - The image content.modules - The set of modules that the runtime image contains.IOExceptionpublic DataOutputStream getJImageOutputStream()
ImageBuildergetJImageOutputStream in interface ImageBuilderpublic ExecutableImage getExecutableImage()
ImageBuildergetExecutableImage in interface ImageBuilderpublic static ExecutableImage getExecutableImage(Path root)
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-14-195246.buildd.src