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.
Click to show internal directories.
Click to hide internal directories.