diff --git a/bin/openapi-generator b/bin/openapi-generator index c78443f032f7..5c92e8711c00 100755 --- a/bin/openapi-generator +++ b/bin/openapi-generator @@ -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 -jar "' + resolve(__dirname, 'openapi-generator.jar') + '"'; if (args) { command += ` ${args.join(' ')}`;