Skip to content

Commit d3a6050

Browse files
committed
Generate supported POM formats list dynamically from extensions array
1 parent 670282c commit d3a6050

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

bin/detect

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ output::error <<-EOF
3030
Error: Your app is configured to use the Java buildpack,
3131
but we couldn't find any supported Java project files.
3232
33-
The Java buildpack only supports Maven projects. It requires a 'pom.xml'
33+
The Java buildpack only supports Maven projects. It requires a pom.xml
3434
file or other supported POM format in the root directory of your source code.
3535
36-
Supported POM formats: pom.xml, pom.atom, pom.clj, pom.groovy,
37-
pom.rb, pom.scala, pom.yaml, pom.yml
36+
Supported POM formats: $(printf "pom.%s, " "${extensions[@]}" | sed 's/, $//')
3837
3938
IMPORTANT: If your Java project uses a different build tool:
4039
- For Gradle projects, use the heroku/gradle buildpack instead

0 commit comments

Comments
 (0)