Skip to content

Commit

Permalink
Merge pull request #11 from BarDweller/main
Browse files Browse the repository at this point in the history
Ignore when helper files are missing
  • Loading branch information
dmikusa authored Apr 15, 2024
2 parents 37d4e75 + 8f06144 commit e406633
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,24 @@ const openSslLoaderName = "openssl-certificate-loader"
func Build(context libcnb.BuildContext) (libcnb.BuildResult, error) {
result := libcnb.BuildResult{}



logger := log.NewPaketoLogger(os.Stdout)
logger.Title(context.Buildpack.Info.Name, context.Buildpack.Info.Version, context.Buildpack.Info.Homepage)

//read the env vars set via the extension.
versionb, err := os.ReadFile(javaVersionBuilderFile)
if err != nil {
if os.IsNotExist(err){
return result,nil
}
return result, err
}
helperb, err := os.ReadFile(javaHelpersBuilderFile)
if err != nil {
if os.IsNotExist(err){
return result,nil
}
return result, err
}

Expand Down

0 comments on commit e406633

Please sign in to comment.