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 ¶
ExecutableJar looks for the jar with a Main-Class manifest. If there is not exactly 1 of these jars, throw an error.
Types ¶
type RepoMetadata ¶
type RepoMetadata struct {
ExpiryTimestamp string `toml:"expiry_timestamp"`
}
RepoMetadata contains the information for the m2 cache repo layer.
Click to show internal directories.
Click to hide internal directories.