Class JavaPackage
- java.lang.Object
-
- org.fedoraproject.xmvn.tools.install.Package
-
- org.fedoraproject.xmvn.tools.install.JavaPackage
-
public class JavaPackage extends Package
Class describing a Java package as a package which besides other files files also installs Java metadata as an additional file.- Author:
- Mikolaj Izdebski
-
-
Constructor Summary
Constructors Constructor Description JavaPackage(java.lang.String id, java.nio.file.Path metadataPath)Create an empty Java package with given ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.fedoraproject.xmvn.metadata.PackageMetadatagetMetadata()Get metadata associated with this package.voidinstall(java.nio.file.Path installRoot)Install this package into specified root.-
Methods inherited from class org.fedoraproject.xmvn.tools.install.Package
addFile, addFileIfNotExists, equals, getFiles, getId, hashCode, toString, writeDescriptor
-
-
-
-
Method Detail
-
getMetadata
public org.fedoraproject.xmvn.metadata.PackageMetadata getMetadata()
Get metadata associated with this package.- Returns:
- package metadata object
-
install
public void install(java.nio.file.Path installRoot) throws java.io.IOExceptionDescription copied from class:PackageInstall this package into specified root.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.
-
-