@Component(role=PackageService.class, hint="fat-jar") public class ShrinkWrapFatJarPackageService extends Object implements PackageService
| Modifier and Type | Field and Description |
|---|---|
private static List<String> |
DEFAULT_EXCLUDES |
| Constructor and Description |
|---|
ShrinkWrapFatJarPackageService() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addDependencies(PackageConfig config,
Collection<DependencySet> dependencies,
org.jboss.shrinkwrap.api.spec.JavaArchive jar) |
private void |
addFileSets(PackageConfig config,
Archive archive,
org.jboss.shrinkwrap.api.spec.JavaArchive jar) |
private static void |
addProjectClasses(PackageConfig config,
Archive archive,
org.jboss.shrinkwrap.api.spec.JavaArchive jar) |
File |
doPackage(PackageConfig config)
Creates the package.
|
private void |
embedDependency(Log log,
DependencySet set,
org.jboss.shrinkwrap.api.spec.JavaArchive jar,
File file)
Import from file and make sure the file is closed.
|
private static void |
embedFile(PackageConfig config,
org.jboss.shrinkwrap.api.spec.JavaArchive jar,
FileItem item) |
private static void |
embedFileSet(Log log,
MavenProject project,
FileSet fs,
org.jboss.shrinkwrap.api.spec.JavaArchive jar) |
private static void |
generateManifest(org.jboss.shrinkwrap.api.spec.JavaArchive jar,
Map<String,String> entries)
Generate the manifest for the über jar.
|
private static boolean |
isExplicitlyIncluded(DependencySet set,
String name) |
private boolean |
toExclude(DependencySet set,
org.jboss.shrinkwrap.api.ArchivePath path) |
PackageType |
type()
Type of packaging.
|
public PackageType type()
PackageServicetype in interface PackageServicepublic File doPackage(PackageConfig config) throws PackagingException
PackageServicedoPackage in interface PackageServiceconfig - the configurationPackagingException - thrown when the package cannot be builtprivate void addFileSets(PackageConfig config, Archive archive, org.jboss.shrinkwrap.api.spec.JavaArchive jar)
private static void addProjectClasses(PackageConfig config, Archive archive, org.jboss.shrinkwrap.api.spec.JavaArchive jar)
private void addDependencies(PackageConfig config, Collection<DependencySet> dependencies, org.jboss.shrinkwrap.api.spec.JavaArchive jar)
private static void embedFile(PackageConfig config, org.jboss.shrinkwrap.api.spec.JavaArchive jar, FileItem item) throws PackagingException
PackagingExceptionprivate static void embedFileSet(Log log, MavenProject project, FileSet fs, org.jboss.shrinkwrap.api.spec.JavaArchive jar)
private boolean toExclude(DependencySet set, org.jboss.shrinkwrap.api.ArchivePath path)
private static boolean isExplicitlyIncluded(DependencySet set, String name)
private void embedDependency(Log log, DependencySet set, org.jboss.shrinkwrap.api.spec.JavaArchive jar, File file)
log - the loggerset - the dependency setjar - the archivefile - the file, must not be nullprivate static void generateManifest(org.jboss.shrinkwrap.api.spec.JavaArchive jar,
Map<String,String> entries)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.