A C G I J M N O P S T U V W 

A

add(ByteSource, String) - Method in class org.pantsbuild.tools.jar.JarBuilder
Schedules addition of the given contents to the entry at jarPath.
addDirectory(File, Optional<String>) - Method in class org.pantsbuild.tools.jar.JarBuilder
Schedules recursive addition of all files contained within directory to the resulting jar.
addFile(File, String) - Method in class org.pantsbuild.tools.jar.JarBuilder
Schedules addition of the given file's contents to the entry at jarPath.
addJar(File) - Method in class org.pantsbuild.tools.jar.JarBuilder
Schedules addition of the given jar's contents to the file at jarPath.
always(JarBuilder.DuplicateAction) - Static method in class org.pantsbuild.tools.jar.JarBuilder.DuplicateHandler
Creates a handler that always applies the given action.
apply(CharSequence) - Method in class org.pantsbuild.tools.jar.JarBuilder.DuplicatePolicy
 

C

close() - Method in class org.pantsbuild.tools.jar.JarBuilder
 

G

getAction() - Method in class org.pantsbuild.tools.jar.JarBuilder.DuplicatePolicy
Returns the action that should be applied when a duplicate entry falls under this policy's jurisdiction.
getJarPath() - Method in interface org.pantsbuild.tools.jar.JarBuilder.Entry
Returns the path this entry will be added into the jar at.
getName() - Method in interface org.pantsbuild.tools.jar.JarBuilder.Entry
Returns the name of the entry within its source.
getPath() - Method in exception org.pantsbuild.tools.jar.JarBuilder.DuplicateEntryException
Returns the duplicate path.
getSource() - Method in exception org.pantsbuild.tools.jar.JarBuilder.DuplicateEntryException
Returns the contents of the duplicate entry.
getSource() - Method in interface org.pantsbuild.tools.jar.JarBuilder.Entry
Returns the source that contains the entry.

I

identify(String) - Method in interface org.pantsbuild.tools.jar.JarBuilder.Source
Identifies a member of this source.

J

JarBuilder - Class in org.pantsbuild.tools.jar
A utility than can create or update jar archives with special handling of duplicate entries.
JarBuilder(File) - Constructor for class org.pantsbuild.tools.jar.JarBuilder
Creates a JarBuilder that will write scheduled jar additions to target upon JarBuilder.write().
JarBuilder(File, JarBuilder.Listener) - Constructor for class org.pantsbuild.tools.jar.JarBuilder
Creates a JarBuilder that will write scheduled jar additions to target upon JarBuilder.write().
JarBuilder.DuplicateAction - Enum in org.pantsbuild.tools.jar
Identifies an action to take when duplicate jar entries are encountered.
JarBuilder.DuplicateEntryException - Exception in org.pantsbuild.tools.jar
Indicates a duplicate jar entry is being rejected.
JarBuilder.DuplicateHandler - Class in org.pantsbuild.tools.jar
Handles duplicate jar entries by selecting an appropriate action based on the entry path.
JarBuilder.DuplicateHandler(JarBuilder.DuplicateAction, JarBuilder.DuplicatePolicy...) - Constructor for class org.pantsbuild.tools.jar.JarBuilder.DuplicateHandler
A convenience constructor equivalent to calling: DuplicateHandler(defaultAction, Arrays.asList(policies))
JarBuilder.DuplicateHandler(JarBuilder.DuplicateAction, Iterable<JarBuilder.DuplicatePolicy>) - Constructor for class org.pantsbuild.tools.jar.JarBuilder.DuplicateHandler
Creates a handler that applies the 1st matching policy when a duplicate entry is encountered, falling back to the given defaultAction if no policy applies.
JarBuilder.DuplicatePolicy - Class in org.pantsbuild.tools.jar
Encapsulates a policy for treatment of duplicate jar entries.
JarBuilder.DuplicatePolicy(Predicate<CharSequence>, JarBuilder.DuplicateAction) - Constructor for class org.pantsbuild.tools.jar.JarBuilder.DuplicatePolicy
Creates a policy that will be applied to duplicate entries matching the given selector.
JarBuilder.Entry - Interface in org.pantsbuild.tools.jar
Represents an entry to be added to a jar.
JarBuilder.IndexingException - Exception in org.pantsbuild.tools.jar
Indicates a problem indexing a pre-existing jar that will be added or updated to the target jar.
JarBuilder.IndexingException(File, Throwable) - Constructor for exception org.pantsbuild.tools.jar.JarBuilder.IndexingException
 
JarBuilder.JarBuilderException - Exception in org.pantsbuild.tools.jar
Indicates a problem encountered when building up a jar's contents for writing out.
JarBuilder.JarBuilderException(String) - Constructor for exception org.pantsbuild.tools.jar.JarBuilder.JarBuilderException
 
JarBuilder.JarBuilderException(String, Throwable) - Constructor for exception org.pantsbuild.tools.jar.JarBuilder.JarBuilderException
 
JarBuilder.JarCreationException - Exception in org.pantsbuild.tools.jar
Indicates a problem writing out a jar.
JarBuilder.JarCreationException(String) - Constructor for exception org.pantsbuild.tools.jar.JarBuilder.JarCreationException
 
JarBuilder.Listener - Interface in org.pantsbuild.tools.jar
An interface for those interested in the progress of writing the target jar.
JarBuilder.Source - Interface in org.pantsbuild.tools.jar
Identifies a source for jar entries.

M

Main - Class in org.pantsbuild.tools.jar
 
main(String[]) - Static method in class org.pantsbuild.tools.jar.Main
Creates or updates a jar with specified files, directories and jar files.
Main.Options - Class in org.pantsbuild.tools.jar
 
Main.Options() - Constructor for class org.pantsbuild.tools.jar.Main.Options
 
Main.Options.ClassPathOptionHandler - Class in org.pantsbuild.tools.jar
 
Main.Options.ClassPathOptionHandler(CmdLineParser, OptionDef, Setter<? super String>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.ClassPathOptionHandler
 
Main.Options.DuplicatePolicyParser - Class in org.pantsbuild.tools.jar
 
Main.Options.DuplicatePolicyParser(CmdLineParser, OptionDef, Setter<? super JarBuilder.DuplicatePolicy>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.DuplicatePolicyParser
 
Main.Options.FilesOptionHandler - Class in org.pantsbuild.tools.jar
 
Main.Options.FilesOptionHandler(CmdLineParser, OptionDef, Setter<? super Main.Options.FileSource>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.FilesOptionHandler
 
Main.Options.FileSourceOptionHandler - Class in org.pantsbuild.tools.jar
 
Main.Options.FileSourceOptionHandler(CmdLineParser, OptionDef, Setter<? super Main.Options.FileSource>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.FileSourceOptionHandler
 
Main.Options.JarsOptionHandler - Class in org.pantsbuild.tools.jar
 
Main.Options.JarsOptionHandler(CmdLineParser, OptionDef, Setter<? super File>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.JarsOptionHandler
 
Main.Options.PatternOptionHandler - Class in org.pantsbuild.tools.jar
 
Main.Options.PatternOptionHandler(CmdLineParser, OptionDef, Setter<? super Pattern>) - Constructor for class org.pantsbuild.tools.jar.Main.Options.PatternOptionHandler
 

N

name() - Method in interface org.pantsbuild.tools.jar.JarBuilder.Source
Returns a name for this source.
NOOP - Static variable in interface org.pantsbuild.tools.jar.JarBuilder.Listener
A listener that ignores all events.

O

onConcat(String, Iterable<? extends JarBuilder.Entry>) - Method in interface org.pantsbuild.tools.jar.JarBuilder.Listener
Called to notify the listener an original entry is being concatenated with one or more subsequently added entries.
onReplace(Iterable<? extends JarBuilder.Entry>, JarBuilder.Entry) - Method in interface org.pantsbuild.tools.jar.JarBuilder.Listener
Called to notify the listener that original entries are being replaced by a subsequently added entry.
onSkip(Optional<? extends JarBuilder.Entry>, Iterable<? extends JarBuilder.Entry>) - Method in interface org.pantsbuild.tools.jar.JarBuilder.Listener
Called to notify the listener that entries are being skipped.
onWrite(JarBuilder.Entry) - Method in interface org.pantsbuild.tools.jar.JarBuilder.Listener
Called to notify the listener of a newly written non-duplicate entry.
org.pantsbuild.tools.jar - package org.pantsbuild.tools.jar
 

P

pathMatches(String, JarBuilder.DuplicateAction) - Static method in class org.pantsbuild.tools.jar.JarBuilder.DuplicatePolicy
Creates a policy that applies to entries based on a path match.

S

skipDuplicatesConcatWellKnownMetadata() - Static method in class org.pantsbuild.tools.jar.JarBuilder.DuplicateHandler
Creates a handler that merges well-known mergeable resources and otherwise skips duplicates.

T

toString() - Method in class org.pantsbuild.tools.jar.JarBuilder.DuplicatePolicy
 

U

useCustomManifest(Manifest) - Method in class org.pantsbuild.tools.jar.JarBuilder
Registers the given Manifest to be used in the jar written out by JarBuilder.write().
useCustomManifest(File) - Method in class org.pantsbuild.tools.jar.JarBuilder
Registers the given Manifest to be used in the jar written out by JarBuilder.write().
useCustomManifest(CharSequence) - Method in class org.pantsbuild.tools.jar.JarBuilder
Registers the given Manifest to be used in the jar written out by JarBuilder.write().
useCustomManifest(JarBuilder.NamedByteSource) - Method in class org.pantsbuild.tools.jar.JarBuilder
Registers the given Manifest to be used in the jar written out by JarBuilder.write().

V

valueOf(String) - Static method in enum org.pantsbuild.tools.jar.JarBuilder.DuplicateAction
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.pantsbuild.tools.jar.JarBuilder.DuplicateAction
Returns an array containing the constants of this enum type, in the order they are declared.

W

write() - Method in class org.pantsbuild.tools.jar.JarBuilder
Creates a jar at the configured target path applying the scheduled additions and skipping any duplicate entries found.
write(boolean) - Method in class org.pantsbuild.tools.jar.JarBuilder
Creates a jar at the configured target path applying the scheduled additions and skipping any duplicate entries found.
write(boolean, JarBuilder.DuplicateHandler, Pattern...) - Method in class org.pantsbuild.tools.jar.JarBuilder
Creates a jar at the configured target path applying the scheduled additions per the given duplicateHandler.
write(boolean, JarBuilder.DuplicateHandler, Iterable<Pattern>) - Method in class org.pantsbuild.tools.jar.JarBuilder
Creates a jar at the configured target path applying the scheduled additions per the given duplicateHandler.
A C G I J M N O P S T U V W