pom

package
v0.0.0-...-faefad5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown = iota
	Bundle
	Package
	All
)

Artifact types

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Name      string
	BasePath  string
	Path      string
	ID        string
	Version   string
	Packaging string
	Parent    string
}

Artifact holding struct

func (*Artifact) CompletePath

func (a *Artifact) CompletePath() string

CompletePath complete path to artifact

func (*Artifact) Filename

func (a *Artifact) Filename() string

Filename get the filename for the artifact

func (*Artifact) Kind

func (a *Artifact) Kind() int

Kind What is the kind of the artifact

func (*Artifact) PakageName

func (a *Artifact) PakageName() string

PakageName returns the package name

type Pom

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

Pom is a java pom file parser

func NewPom

func NewPom(path string) Pom

NewPom creates a pom object from path

func Open

func Open(path string) (*Pom, error)

Open pom file

func (*Pom) GetAllArtifacts

func (p *Pom) GetAllArtifacts(filter int) ([]Artifact, error)

GetAllArtifacts gets all child artifacts

func (*Pom) GetAllPomModules

func (p *Pom) GetAllPomModules()

GetAllPomModules gets the modules available in the pom file

func (*Pom) GetArtifact

func (p *Pom) GetArtifact() Artifact

GetArtifact from the pom

func (*Pom) GetArtifactByName

func (p *Pom) GetArtifactByName(name string) (*Artifact, error)

GetArtifactByName find artifact by name

func (*Pom) GetChildren

func (p *Pom) GetChildren() []*Pom

GetChildren Get children of this pom

func (*Pom) Open

func (p *Pom) Open(path string) error

Open a pomfile based on path

Jump to

Keyboard shortcuts

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