public class JavaPackage extends Package
| Constructor and Description |
|---|
JavaPackage(String id,
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(Path installRoot)
Install this package into specified root.
|
public JavaPackage(String id, Path metadataPath)
id - package IDmetadataPath - installation path for metadata relative to installation rootIOExceptionpublic PackageMetadata getMetadata()
public void install(Path installRoot) throws IOException
PackagePackage 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.
install in class PackageinstallRoot - target directory where package files will be installedIOExceptionCopyright © 2012-2015 Red Hat, Inc.. All Rights Reserved.