runner

package
v1.0.0-M9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuiltArtifactProvider

type BuiltArtifactProvider func(application application.Application) (string, error)

BuildArtifactProvider returns the location of the build artifact.

type CompiledApplication

type CompiledApplication struct {
	// JavaVersion is the version of Java used to compile the application.
	JavaVersion string `toml:"java-version"`
}

CompiledApplication represents metadata about a compiled application.

func NewCompiledApplication

func NewCompiledApplication(application application.Application, runner runner.Runner) (CompiledApplication, error)

func (CompiledApplication) Identity

func (c CompiledApplication) Identity() (string, string)

Identity makes CompiledApplication satisfy the Identifiable interface.

type Runner

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

Runner represents the behavior of running the build system command to build an application.

func NewGradleRunner

func NewGradleRunner(build build.Build, buildSystem buildsystem.BuildSystem) Runner

NewRunner creates a new Gradle Runner instance.

func NewMavenRunner

func NewMavenRunner(build build.Build, buildSystem buildsystem.BuildSystem) Runner

NewRunner creates a new Maven Runner instance.

func NewRunner

func NewRunner(build build.Build, builtArtifactProvider BuiltArtifactProvider, bin string, args ...string) Runner

func (Runner) Contribute

func (r Runner) Contribute() error

Contributes builds the application from source code, removes the source code, and expands the built artifact to $APPLICATION_ROOT.

Jump to

Keyboard shortcuts

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