File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -563,12 +563,18 @@ public void execute() throws MojoExecutionException {
563563 }
564564
565565 if (StringUtils .isNotBlank (inputSpecRootDirectory )) {
566+ // make sure the path can be processed correct under Windows OS
567+ inputSpecRootDirectory = inputSpecRootDirectory .replaceAll ("\\ \\ " , "/" );
568+
566569 inputSpec = new MergedSpecBuilder (inputSpecRootDirectory , mergedFileName ,
567570 mergedFileInfoName , mergedFileInfoDescription , mergedFileInfoVersion )
568571 .buildMergedSpec ();
569572 LOGGER .info ("Merge input spec would be used - {}" , inputSpec );
570573 }
571574
575+ // make sure the path can be processed correct under Windows OS
576+ inputSpec = inputSpec .replaceAll ("\\ \\ " , "/" );
577+
572578 File inputSpecFile = new File (inputSpec );
573579
574580 if (output == null ) {
You can’t perform that action at this time.
0 commit comments