Skip to content

Commit ff26527

Browse files
committed
docs(java-cfenv): clarify Finalize glob comment (mirror underscore name is what ships today)
1 parent 0eb20a8 commit ff26527

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/java/frameworks/java_cf_env.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ func (j *JavaCfEnvFramework) Supply() error {
8686
func (j *JavaCfEnvFramework) Finalize() error {
8787
// Add the JAR to additional libraries (classpath)
8888
javaCfEnvDir := filepath.Join(j.context.Stager.DepDir(), "java_cf_env")
89-
// Match both the Maven name (java-cfenv-all-<ver>.jar) and the CF mirror name
90-
// (java-cfenv_<ver>_<stack>_<sha>.jar, underscores) — a hyphen-only glob misses the latter.
89+
// The CF mirror installs the jar as java-cfenv_<ver>_<stack>_<sha>.jar (underscores).
90+
// Glob java-cfenv*.jar so this — and a hyphenated Maven name, if the uri is ever
91+
// pointed directly at Maven Central — both match.
9192
jarPattern := filepath.Join(javaCfEnvDir, "java-cfenv*.jar")
9293

9394
matches, err := filepath.Glob(jarPattern)

0 commit comments

Comments
 (0)