public class DefaultPackage extends Object implements Package, Comparable<DefaultPackage>
| Constructor and Description |
|---|
DefaultPackage(String name,
InstallerSettings settings,
org.codehaus.plexus.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEffectivePomFile(Path file,
Path jppGroupId,
Path jppArtifactId) |
void |
addFile(Path file,
Path target,
int mode) |
void |
addFile(Path file,
Path dirPath,
Path fileName,
int mode) |
void |
addJarFile(Path file,
Path baseName,
Collection<Path> symlinks) |
void |
addPomFile(Path file,
Path jppGroupId,
Path jppArtifactId) |
int |
compareTo(DefaultPackage rhs) |
void |
createDepmaps(String groupId,
String artifactId,
String version,
Path jppGroup,
Path jppName,
PackagingRule rule) |
FragmentFile |
getMetadata() |
void |
install(Installer installer) |
boolean |
isInstallable() |
public static final String MAIN
public DefaultPackage(String name, InstallerSettings settings, org.codehaus.plexus.logging.Logger logger)
public void addPomFile(Path file, Path jppGroupId, Path jppArtifactId)
addPomFile in interface Packagepublic void addEffectivePomFile(Path file, Path jppGroupId, Path jppArtifactId)
addEffectivePomFile in interface Packagepublic void addJarFile(Path file, Path baseName, Collection<Path> symlinks) throws IOException
addJarFile in interface PackageIOExceptionpublic void createDepmaps(String groupId, String artifactId, String version, Path jppGroup, Path jppName, PackagingRule rule)
createDepmaps in interface Packagepublic void install(Installer installer) throws IOException
IOExceptionpublic boolean isInstallable()
public FragmentFile getMetadata()
getMetadata in interface Packagepublic int compareTo(DefaultPackage rhs)
compareTo in interface Comparable<DefaultPackage>Copyright © 2012-2013 Red Hat, Inc.. All Rights Reserved.