| Modifier and Type | Method and Description |
|---|---|
JarBuilder |
JarBuilder.add(ByteSource contents,
String jarPath)
Schedules addition of the given
contents to the entry at jarPath. |
JarBuilder |
JarBuilder.addDirectory(File directory,
Optional<String> jarPath)
Schedules recursive addition of all files contained within
directory to the resulting
jar. |
JarBuilder |
JarBuilder.addFile(File file,
String jarPath)
Schedules addition of the given
file's contents to the entry at jarPath. |
JarBuilder |
JarBuilder.addJar(File file)
Schedules addition of the given jar's contents to the file at
jarPath. |
JarBuilder |
JarBuilder.useCustomManifest(CharSequence customManifest)
Registers the given Manifest to be used in the jar written out by
write(). |
JarBuilder |
JarBuilder.useCustomManifest(File customManifest)
Registers the given Manifest to be used in the jar written out by
write(). |
JarBuilder |
JarBuilder.useCustomManifest(org.pantsbuild.tools.jar.JarBuilder.NamedByteSource customManifest)
Registers the given Manifest to be used in the jar written out by
write(). |
JarBuilder |
JarBuilder.useCustomManifest(Manifest customManifest)
Registers the given Manifest to be used in the jar written out by
write(). |