openapi-generator: handle java options (#36430)
This commit is contained in:
parent
1e53748146
commit
2b62d78a1b
1 changed files with 2 additions and 2 deletions
|
@ -21,10 +21,10 @@ class OpenapiGenerator < Formula
|
|||
if build.head?
|
||||
system "mvn", "clean", "package", "-Dmaven.javadoc.skip=true"
|
||||
libexec.install "modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||
bin.write_jar_script libexec/"openapi-generator-cli.jar", "openapi-generator"
|
||||
bin.write_jar_script libexec/"openapi-generator-cli.jar", "openapi-generator", "$JAVA_OPTS"
|
||||
else
|
||||
libexec.install "openapi-generator-cli-#{version}.jar"
|
||||
bin.write_jar_script libexec/"openapi-generator-cli-#{version}.jar", "openapi-generator"
|
||||
bin.write_jar_script libexec/"openapi-generator-cli-#{version}.jar", "openapi-generator", "$JAVA_OPTS"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue