gradle

package
v1.348.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(options *ExecuteOptions, utils Utils) (string, error)

Types

type ExecuteOptions

type ExecuteOptions struct {
	BuildGradlePath   string            `json:"path,omitempty"`
	Task              string            `json:"task,omitempty"`
	BuildFlags        []string          `json:"buildFlags,omitempty"`
	InitScriptContent string            `json:"initScriptContent,omitempty"`
	UseWrapper        bool              `json:"useWrapper,omitempty"`
	ProjectProperties map[string]string `json:"projectProperties,omitempty"`
	// contains filtered or unexported fields
}

ExecuteOptions are used by Execute() to construct the Gradle command line.

type Utils

type Utils interface {
	Stdout(out io.Writer)
	Stderr(err io.Writer)
	RunExecutable(e string, p ...string) error

	FileExists(filename string) (bool, error)
	FileWrite(path string, content []byte, perm os.FileMode) error
	FileRemove(path string) error
}

Jump to

Keyboard shortcuts

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