public class JavaPackage extends Package
Constructor and Description |
---|
JavaPackage(java.lang.String id,
java.nio.file.Path metadataPath)
Create an empty Java package with given ID.
|
Modifier and Type | Method and Description |
---|---|
PackageMetadata |
getMetadata()
Get metadata associated with this package.
|
void |
install(java.nio.file.Path installRoot)
Install this package into specified root.
|
addFile, addFileIfNotExists, equals, getFiles, getId, hashCode, toString, writeDescriptor
public JavaPackage(java.lang.String id, java.nio.file.Path metadataPath)
id
- package IDmetadataPath
- installation path for metadata relative to installation rootjava.io.IOException
public PackageMetadata getMetadata()
public void install(java.nio.file.Path installRoot) throws java.io.IOException
Package
Package installation is equivalent to installation of all files it contains.
Target directory won't be overwritten if it already exists, which allows installation of multiple packages into the same directory.
Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.