java.lang.Object
java.lang.Record
com.github.sormuras.bach.Configuration
public record Configuration(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions)
extends Record
Global settings with nested topic-specific configurations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Path
-related settings.static final record
Print-related settings and commonPrintWriter
objects.static final record
ToolFinder
-related andToolProvider
-related settings. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration
(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions) Creates an instance of aConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
computeJarFileName
(String module, ModuleDescriptor.Version version) static Path
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
lenient()
Returns the value of thelenient
record component.static Configuration
of()
static Configuration
of
(Configuration.Pathing pathing, Configuration.Printing printing) pathing()
Returns the value of thepathing
record component.printing()
Returns the value of theprinting
record component.Returns the value of theprojectOptions
record component.int
timeout()
Returns the value of thetimeout
record component.tooling()
Returns the value of thetooling
record component.final String
toString()
Returns a string representation of this record class.boolean
verbose()
Returns the value of theverbose
record component.
-
Field Details
-
EXTERNAL_MODULES_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_LAYERS_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_PROGRAMS_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_PROGRAM_ARGSFILE
- See Also:
-
LOGBOOK_ARCHIVE_FILE
- See Also:
-
LOGBOOK_MARKDOWN_FILE
- See Also:
-
TIMESTAMP_PATTERN
- See Also:
-
WORKSPACE_DIRECTORY
- See Also:
-
-
Constructor Details
-
Configuration
public Configuration(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions) Creates an instance of aConfiguration
record class.- Parameters:
verbose
- the value for theverbose
record componentlenient
- the value for thelenient
record componenttimeout
- the value for thetimeout
record componentpathing
- the value for thepathing
record componentprinting
- the value for theprinting
record componenttooling
- the value for thetooling
record componentprojectOptions
- the value for theprojectOptions
record component
-
-
Method Details
-
computeJavaExecutablePath
-
computeJarFileName
-
of
-
of
-
with
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
verbose
Returns the value of theverbose
record component.- Returns:
- the value of the
verbose
record component
-
lenient
Returns the value of thelenient
record component.- Returns:
- the value of the
lenient
record component
-
timeout
Returns the value of thetimeout
record component.- Returns:
- the value of the
timeout
record component
-
pathing
Returns the value of thepathing
record component.- Returns:
- the value of the
pathing
record component
-
printing
Returns the value of theprinting
record component.- Returns:
- the value of the
printing
record component
-
tooling
Returns the value of thetooling
record component.- Returns:
- the value of the
tooling
record component
-
projectOptions
Returns the value of theprojectOptions
record component.- Returns:
- the value of the
projectOptions
record component
-