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.IOException
public void storeFiles(Pool files, String bom, Properties release)
ImageBuilder
storeFiles
in interface ImageBuilder
files
- Pool of module content.bom
- The options used to build the image file.release
- the release propertiespublic void storeFiles(Pool files, String bom)
ImageBuilder
storeFiles
in interface ImageBuilder
files
- 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.IOException
public DataOutputStream getJImageOutputStream()
ImageBuilder
getJImageOutputStream
in interface ImageBuilder
public ExecutableImage getExecutableImage()
ImageBuilder
getExecutableImage
in interface ImageBuilder
public static ExecutableImage getExecutableImage(Path root)
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-22-203349.buildd.src