Skip to content

Commit

Permalink
Add "$JAVA_OPTS" to enable jvm options
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Feb 9, 2019
1 parent 49dbd25 commit f0c0f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/openapi-generator
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {resolve} = require('path');

const args = process.argv.slice(2);

let command = 'java -jar "' + resolve(__dirname, 'openapi-generator.jar') + '"';
let command = 'java ' + (process.env['JAVA_OPTS'] || '') + ' -jar "' + resolve(__dirname, 'openapi-generator.jar') + '"';

if (args) {
command += ` ${args.join(' ')}`;
Expand Down

0 comments on commit f0c0f54

Please sign in to comment.