java

package
v0.0.0-...-68371d7 Latest Latest
Warning

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

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

Documentation

Overview

Package java contains Java buildpack library code.

Index

Constants

View Source
const (

	// ManifestPath specifies the path of MANIFEST.MF relative to the working directory.
	ManifestPath = "META-INF/MANIFEST.MF"
)

Variables

This section is empty.

Functions

func CheckCacheExpiration

func CheckCacheExpiration(ctx *gcp.Context, repoMeta *RepoMetadata, m2CachedRepo *layers.Layer)

CheckCacheExpiration clears the m2 layer and sets a new expiry timestamp when the cache is past expiration.

func ExecutableJar

func ExecutableJar(ctx *gcp.Context) (string, error)

ExecutableJar looks for the jar with a Main-Class manifest. If there is not exactly 1 of these jars, throw an error.

func MainFromManifest

func MainFromManifest(ctx *gcp.Context, manifestPath string) (string, error)

MainFromManifest returns the main class specified in the manifest at the input path.

Types

type RepoMetadata

type RepoMetadata struct {
	ExpiryTimestamp string `toml:"expiry_timestamp"`
}

RepoMetadata contains the information for the m2 cache repo layer.

Jump to

Keyboard shortcuts

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