public class JavaPackage extends Package
| Constructor | Description |
|---|---|
JavaPackage(java.lang.String id,
java.nio.file.Path metadataPath) |
Create an empty Java package with given ID.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.fedoraproject.xmvn.metadata.PackageMetadata |
getMetadata() |
Get metadata associated with this package.
|
void |
install(java.nio.file.Path installRoot) |
Install this package into specified root.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFile, addFileIfNotExists, equals, getFiles, getId, hashCode, toString, writeDescriptorpublic JavaPackage(java.lang.String id,
java.nio.file.Path metadataPath)
id - package IDmetadataPath - installation path for metadata relative to installation rootjava.io.IOExceptionpublic org.fedoraproject.xmvn.metadata.PackageMetadata getMetadata()
public void install(java.nio.file.Path installRoot)
throws java.io.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.