finder

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPathsToAbsPaths

func ConvertPathsToAbsPaths(paths []string) ([]string, error)

func FilterFiles

func FilterFiles(files []string, pattern string) []string

func GCDPath

func GCDPath(paths []string) string

func MapFilesToDir

func MapFilesToDir(rootPomFiles []string, classDirs []string) map[string][]string

Matches class directories to closest root pom file and creates a map with each root pom file pointing at a list of its related class directories

Types

type Finder

type Finder struct{}

func (Finder) FindFiles

func (f Finder) FindFiles(roots []string, exclusions []string) ([]string, error)

func (Finder) FindJavaClassDirs

func (f Finder) FindJavaClassDirs(files []string, findJars bool) ([]string, error)

func (Finder) FindMavenRoots

func (f Finder) FindMavenRoots(files []string) ([]string, error)

type IFinder

type IFinder interface {
	FindMavenRoots(files []string) ([]string, error)
	FindJavaClassDirs(files []string, findJars bool) ([]string, error)
	FindFiles(paths []string, exclusions []string) ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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