javaconfig

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// ModuleGranularityDirective represents the directive that controls whether
	// this Java module has a module granularity (Gradle) or a package
	// granularity (bazel).
	// Can be either "package" or "module". Defaults to "package".
	ModuleGranularityDirective = "java_module_granularity"

	// MavenInstallFile represents the directive that controls where the
	// maven_install.json file is located.
	// Defaults to "maven_install.json".
	MavenInstallFile = "java_maven_install_file"

	// MavenManifestFile represents the directive that controls where the
	// maven_manifest.json file is located.
	// Defaults to "maven_manifest.json".
	MavenManifestFile = "java_maven_manifest_file"

	// TestMode allows user to choose from per file test or per directory test suite.
	TestMode = "java_test_mode"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config represents a config extension for a specific Bazel package.

func New

func New(repoRoot, outputBase string) *Config

New creates a new Config.

func (Config) IsModuleRoot

func (c Config) IsModuleRoot() bool

func (Config) MavenInstallFile

func (c Config) MavenInstallFile() string

func (Config) MavenManifestFile

func (c Config) MavenManifestFile() string

func (Config) ModuleGranularity

func (c Config) ModuleGranularity() string

func (*Config) NewChild

func (c *Config) NewChild() *Config

NewChild creates a new child Config. It inherits desired values from the current Config and sets itself as the parent to the child.

func (Config) OutputBase

func (c Config) OutputBase() string

func (*Config) SetMavenInstallFile

func (c *Config) SetMavenInstallFile(filename string)

func (*Config) SetMavenManifestFile

func (c *Config) SetMavenManifestFile(filename string)

func (*Config) SetModuleGranularity

func (c *Config) SetModuleGranularity(granularity string) error

func (*Config) SetTestMode

func (c *Config) SetTestMode(mode string) error

func (Config) TestMode

func (c Config) TestMode() string

type Configs

type Configs map[string]*Config

Configs is an extension of map[string]*Config. It provides finding methods on top of the mapping.

func (*Configs) ParentForPackage

func (c *Configs) ParentForPackage(pkg string) *Config

ParentForPackage returns the parent Config for the given Bazel package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL