pomtool

package
v0.0.0-...-53ef981 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx *Context, args []string) error

Types

type Context

type Context struct {
	AppName     string
	AppTitle    string
	AppVersion  string
	AppRevision int
}

type File

type File string

func (File) Child

func (f File) Child(name string) File

func (File) CopyTo

func (f File) CopyTo(dst File) error

func (File) Exists

func (f File) Exists() bool

func (File) IsDir

func (f File) IsDir() bool

func (File) IsFile

func (f File) IsFile() bool

func (File) Mkdirs

func (f File) Mkdirs() error

func (File) Name

func (f File) Name() string

func (File) Normalize

func (f File) Normalize() File

func (File) Parent

func (f File) Parent() File

func (File) ReadBinary

func (f File) ReadBinary() ([]byte, error)

func (File) String

func (f File) String() string

type POM

type POM struct {
}

func (*POM) Parse

func (inst *POM) Parse(data []byte) (*PomProject, error)

type PomProject

type PomProject struct {
	ModelVersion string `xml:"modelVersion"`

	GroupID    string `xml:"groupId"`
	ArtifactID string `xml:"artifactId"`
	Version    string `xml:"version"`
	Packaging  string `xml:"packaging"`

	Properties PomProperties `xml:"properties"`
}

type PomProperties

type PomProperties struct {
	InnerXML string `xml:",innerxml"`
	// contains filtered or unexported fields
}

func (*PomProperties) GetProperty

func (inst *PomProperties) GetProperty(name string) string

GetProperty get required property

func (*PomProperties) Table

func (inst *PomProperties) Table() map[string]string

Jump to

Keyboard shortcuts

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