public class JarBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
JarBuilder.Observer |
Constructor and Description |
---|
JarBuilder() |
Modifier and Type | Method and Description |
---|---|
JarBuilder |
addEntry(JarEntrySupplier supplier) |
JarBuilder |
addEntryContainer(JarEntryContainer container) |
int |
createJarFile(Path outputFile) |
static String |
pathToClassName(String relativePath) |
JarBuilder |
setEntriesToJar(Iterable<Path> entriesToJar) |
JarBuilder |
setEntriesToJar(java.util.stream.Stream<Path> entriesToJar) |
JarBuilder |
setMainClass(String mainClass) |
JarBuilder |
setManifestFile(Path manifestFile) |
JarBuilder |
setObserver(JarBuilder.Observer observer) |
JarBuilder |
setRemoveEntryPredicate(java.util.function.Predicate<? super CustomZipEntry> removeEntryPredicate) |
JarBuilder |
setShouldDisallowAllDuplicates(boolean shouldDisallowAllDuplicates) |
JarBuilder |
setShouldHashEntries(boolean shouldHashEntries) |
JarBuilder |
setShouldMergeManifests(boolean shouldMergeManifests) |
public JarBuilder setObserver(JarBuilder.Observer observer)
public JarBuilder setEntriesToJar(java.util.stream.Stream<Path> entriesToJar)
public JarBuilder setEntriesToJar(Iterable<Path> entriesToJar)
public JarBuilder addEntry(JarEntrySupplier supplier)
public JarBuilder addEntryContainer(JarEntryContainer container)
public JarBuilder setMainClass(String mainClass)
public JarBuilder setManifestFile(@Nullable Path manifestFile)
public JarBuilder setShouldMergeManifests(boolean shouldMergeManifests)
public JarBuilder setShouldDisallowAllDuplicates(boolean shouldDisallowAllDuplicates)
public JarBuilder setShouldHashEntries(boolean shouldHashEntries)
public JarBuilder setRemoveEntryPredicate(java.util.function.Predicate<? super CustomZipEntry> removeEntryPredicate)
public int createJarFile(Path outputFile) throws IOException
IOException