From a0edce972cfe38f8df86cdee8a109c983200e3aa Mon Sep 17 00:00:00 2001 From: Roman Sattler Date: Fri, 14 Dec 2018 15:24:36 +0100 Subject: [PATCH] Fix "Unable to access jarfile" when path contains spaces --- bin/openapi-generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(' ')}`;