public class LayerEntry extends Object
Note that:
LayerEntry.
| Constructor and Description |
|---|
LayerEntry(Path sourceFile,
AbsoluteUnixPath extractionPath,
FilePermissions permissions)
Instantiates with a source file and the path to place the source file in the container file
system.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
AbsoluteUnixPath |
getExtractionPath()
Gets the extraction path.
|
FilePermissions |
getPermissions()
Gets the file permissions on the container.
|
Path |
getSourceFile()
Gets the source file.
|
int |
hashCode() |
public LayerEntry(Path sourceFile, AbsoluteUnixPath extractionPath, @Nullable FilePermissions permissions)
For example, new LayerEntry(Paths.get("HelloWorld.class"),
AbsoluteUnixPath.get("/app/classes/HelloWorld.class")) adds a file HelloWorld.class to
the container file system at /app/classes/HelloWorld.class.
For example, new LayerEntry(Paths.get("com"),
AbsoluteUnixPath.get("/app/classes/com")) adds a directory to the container file system at
/app/classes/com. This does not add the contents of com/.
sourceFile - the source file to add to the layerextractionPath - the path in the container file system corresponding to the sourceFilepermissions - the file permissions on the container. Use null to use defaults (644
for files, 755 for directories)public Path getSourceFile()
getSourceFile().toAbsolutePath().toString() for the serialized form since the
serialization could change independently of the path representation.public AbsoluteUnixPath getExtractionPath()
public FilePermissions getPermissions()
Copyright © 2018. All rights reserved.