gradle

package
v1.230.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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"`
	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