public final class JkJarPacker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static JkPathMatcher |
EXCLUDE_SIGNATURE_MATCHER
Filter to exclude signature files from fat jar (aka uber jar).
|
Modifier and Type | Method and Description |
---|---|
void |
makeFatJar(java.nio.file.Path resultFile,
java.lang.Iterable<java.nio.file.Path> otherJars)
Creates a fat jar file according specified parameters.
|
void |
makeJar(java.nio.file.Path resultFile)
Creates a jar file according specified parameters.
|
static JkJarPacker |
of(JkPathTreeSet classTrees) |
static JkJarPacker |
of(java.nio.file.Path classDir) |
JkJarPacker |
withExtraFiles(JkPathTreeSet extraFiles) |
JkJarPacker |
withManifest(JkManifest manifest) |
public static final JkPathMatcher EXCLUDE_SIGNATURE_MATCHER
public static JkJarPacker of(JkPathTreeSet classTrees)
public static JkJarPacker of(java.nio.file.Path classDir)
public JkJarPacker withManifest(JkManifest manifest)
public JkJarPacker withExtraFiles(JkPathTreeSet extraFiles)
public void makeJar(java.nio.file.Path resultFile)
resultFile
- Result filepublic void makeFatJar(java.nio.file.Path resultFile, java.lang.Iterable<java.nio.file.Path> otherJars)
resultFile
- Result fileotherJars
- content of other jar to merge with the original jar