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 rootIOException
public PackageMetadata getMetadata()
public void install(Path installRoot) throws 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.
install
in class Package
installRoot
- target directory where package files will be installedIOException
Copyright © 2012–2015 Red Hat, Inc.. All rights reserved.