gradle

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "gradle"

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFactory

type CmdFactory struct{}

func (CmdFactory) MakeDependenciesGraphCmd

func (cf CmdFactory) MakeDependenciesGraphCmd(workingDirectory string, gradlew string, initScript string) (*exec.Cmd, error)

func (CmdFactory) MakeFindSubGraphCmd

func (cf CmdFactory) MakeFindSubGraphCmd(workingDirectory string, gradlew string, initScript string) (*exec.Cmd, error)

type FilePath

type FilePath struct{}

func (FilePath) Abs

func (fp FilePath) Abs(path string) (string, error)

func (FilePath) Base

func (fp FilePath) Base(path string) string

func (FilePath) Dir

func (fp FilePath) Dir(path string) string

func (FilePath) Walk

func (fp FilePath) Walk(root string, walkFn filepath.WalkFunc) error

type ICmdFactory

type ICmdFactory interface {
	MakeFindSubGraphCmd(workingDirectory string, gradlew string, initScript string) (*exec.Cmd, error)
	MakeDependenciesGraphCmd(workingDirectory string, gradlew string, initScript string) (*exec.Cmd, error)
}

type IFilePath

type IFilePath interface {
	Walk(root string, walkFn filepath.WalkFunc) error
	Base(path string) string
	Abs(path string) (string, error)
	Dir(path string) string
}

type IInitScriptHandler

type IInitScriptHandler interface {
	ReadInitFile() ([]byte, error)
	WriteInitFile(targetFileName string, fileWriter writer.IFileWriter) error
}

type IMetaFileFinder

type IMetaFileFinder interface {
	Find(paths []string) (map[string]string, map[string]string, error)
}

type ISetup

type ISetup interface {
	Configure(files []string, paths []string) (Setup, error)
}

type InitScriptHandler

type InitScriptHandler struct{}

func (InitScriptHandler) ReadInitFile

func (_ InitScriptHandler) ReadInitFile() ([]byte, error)

func (InitScriptHandler) WriteInitFile

func (i InitScriptHandler) WriteInitFile(targetFileName string, fileWriter writer.IFileWriter) error

type Job

type Job struct {
	job.BaseJob
	// contains filtered or unexported fields
}

func NewJob

func NewJob(
	file string,
	dir string,
	gradlew string,
	groovyInitScript string,
	cmdFactory ICmdFactory,
	fileWriter writer.IFileWriter,
) *Job

func (*Job) GetDir

func (j *Job) GetDir() string

func (*Job) Run

func (j *Job) Run()

type MetaFileFinder

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

func (MetaFileFinder) Find

func (finder MetaFileFinder) Find(paths []string) (map[string]string, map[string]string, error)

type Pm

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

func NewPm

func NewPm() Pm

func (Pm) Manifests

func (_ Pm) Manifests() []string

func (Pm) Name

func (pm Pm) Name() string

type Project

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

type Setup

type Setup struct {
	GradleProjects    []Project
	CmdFactory        ICmdFactory
	MetaFileFinder    IMetaFileFinder
	InitScriptHandler IInitScriptHandler
	Writer            writer.IFileWriter
	// contains filtered or unexported fields
}

func NewGradleSetup

func NewGradleSetup() *Setup

func (*Setup) Configure

func (gs *Setup) Configure(_ []string, paths []string) (Setup, error)

func (*Setup) GetGradleW

func (gs *Setup) GetGradleW(dir string) string

type SetupError

type SetupError []error

func (SetupError) Error

func (e SetupError) Error() string

type SetupScriptError

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

func (SetupScriptError) Error

func (e SetupScriptError) Error() string

type SetupSubprojectError

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

func (SetupSubprojectError) Error

func (e SetupSubprojectError) Error() string

type SetupWalkError

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

func (SetupWalkError) Error

func (e SetupWalkError) Error() string

type Strategy

type Strategy struct {
	ErrorWriter io.Writer
	GradleSetup ISetup
	// contains filtered or unexported fields
}

func NewStrategy

func NewStrategy(files []string, paths []string) Strategy

func (Strategy) Invoke

func (s Strategy) Invoke() ([]job.IJob, error)

Jump to

Keyboard shortcuts

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