executablejar

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Dependency = "executable-jar"

Dependency indicates that an application is an executable JAR.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutableJAR

type ExecutableJAR struct {
	// Metadata is metadata about the executable JAR application.
	Metadata Metadata
	// contains filtered or unexported fields
}

ExecutableJAR represents an executable JAR JVM application.

func NewExecutableJAR

func NewExecutableJAR(build build.Build) (ExecutableJAR, bool, error)

NewExecutableJAR creates a new ExecutableJAR instance. OK is true if the build plan contains a "jvm-application" dependency and a "Main-Class" manifest key.

func (ExecutableJAR) Contribute

func (e ExecutableJAR) Contribute() error

Contribute makes the contribution to launch.

func (ExecutableJAR) Plan

func (e ExecutableJAR) Plan() (buildpackplan.Plan, error)

Plan returns the dependency information for this application.

type Metadata

type Metadata struct {
	// Classpath is the classpath of the executable JAR.
	ClassPath []string `mapstructure:"classpath" properties:",default=" toml:"classpath"`

	// MainClass is the Main-Class of the executable JAR.
	MainClass string `mapstructure:"main-class" properties:"Main-Class,default=" toml:"main-class"`
}

Metadata describes the metadata

func NewMetadata

func NewMetadata(application application.Application, logger logger.Logger) (Metadata, bool, error)

NewMetadata creates a new Metadata returning false if Main-Class is not defined.

func (Metadata) Identity

func (Metadata) Identity() (string, string)

Jump to

Keyboard shortcuts

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