mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
Fix broken build on Windows OS if the schema contains references to other schema files. (#21300)
This commit is contained in:
parent
0aaeb45dbe
commit
78b54b9283
@ -563,12 +563,18 @@ public class CodeGenMojo extends AbstractMojo {
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(inputSpecRootDirectory)) {
|
||||
// make sure the path can be processed correct under Windows OS
|
||||
inputSpecRootDirectory = inputSpecRootDirectory.replaceAll("\\\\", "/");
|
||||
|
||||
inputSpec = new MergedSpecBuilder(inputSpecRootDirectory, mergedFileName,
|
||||
mergedFileInfoName, mergedFileInfoDescription, mergedFileInfoVersion)
|
||||
.buildMergedSpec();
|
||||
LOGGER.info("Merge input spec would be used - {}", inputSpec);
|
||||
}
|
||||
|
||||
// make sure the path can be processed correct under Windows OS
|
||||
inputSpec = inputSpec.replaceAll("\\\\", "/");
|
||||
|
||||
File inputSpecFile = new File(inputSpec);
|
||||
|
||||
if (output == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user