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 {
563
563
}
564
564
565
565
if (StringUtils .isNotBlank (inputSpecRootDirectory )) {
566
+ // make sure the path can be processed correct under Windows OS
567
+ inputSpecRootDirectory = inputSpecRootDirectory .replaceAll ("\\ \\ " , "/" );
568
+
566
569
inputSpec = new MergedSpecBuilder (inputSpecRootDirectory , mergedFileName ,
567
570
mergedFileInfoName , mergedFileInfoDescription , mergedFileInfoVersion )
568
571
.buildMergedSpec ();
569
572
LOGGER .info ("Merge input spec would be used - {}" , inputSpec );
570
573
}
571
574
575
+ // make sure the path can be processed correct under Windows OS
576
+ inputSpec = inputSpec .replaceAll ("\\ \\ " , "/" );
577
+
572
578
File inputSpecFile = new File (inputSpec );
573
579
574
580
if (output == null ) {
You can’t perform that action at this time.
0 commit comments