forked from loafle/openapi-generator-original
resolve merge conflicts in the core generator files
This commit is contained in:
@@ -4,11 +4,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -6,11 +6,7 @@
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<groupId>org.openapitools</groupId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
# RELEASE_VERSION
|
||||
<<<<<<< HEAD
|
||||
openApiGeneratorVersion=5.0.0-SNAPSHOT
|
||||
=======
|
||||
openApiGeneratorVersion=4.3.1-SNAPSHOT
|
||||
>>>>>>> origin/master
|
||||
# /RELEASE_VERSION
|
||||
|
||||
# BEGIN placeholders
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -19,11 +19,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-maven-plugin</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -5,11 +5,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-project</artifactId>
|
||||
<!-- RELEASE_VERSION -->
|
||||
<<<<<<< HEAD
|
||||
<version>5.0.0-SNAPSHOT</version>
|
||||
=======
|
||||
<version>4.3.1-SNAPSHOT</version>
|
||||
>>>>>>> origin/master
|
||||
<!-- /RELEASE_VERSION -->
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -783,12 +783,6 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
continue;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
File targetedFile = new File(outputFilename);
|
||||
if (ignoreProcessor.allowsFile(targetedFile)) {
|
||||
if (targetedFile.exists() && !support.canOverwrite) {
|
||||
LOGGER.info("Skipped overwriting " + support.destinationFilename + " as the file already exists.");
|
||||
=======
|
||||
if (ignoreProcessor.allowsFile(new File(outputFilename))) {
|
||||
// support.templateFile is the unmodified/original supporting file name (e.g. build.sh.mustache)
|
||||
// templatingEngine.templateExists dispatches resolution to this, performing template-engine specific inspect of support file extensions.
|
||||
@@ -800,7 +794,6 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
if (config.isEnablePostProcessFile()) {
|
||||
config.postProcessFile(written, "supporting-mustache");
|
||||
}
|
||||
>>>>>>> origin/master
|
||||
} else {
|
||||
if (Arrays.stream(templatingEngine.getFileExtensions()).anyMatch(templateFile::endsWith)) {
|
||||
String templateContent = templatingEngine.compileTemplate(this, bundle, support.templateFile);
|
||||
@@ -813,7 +806,6 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
} else {
|
||||
InputStream in = null;
|
||||
|
||||
<<<<<<< HEAD
|
||||
try {
|
||||
in = new FileInputStream(templateFile);
|
||||
} catch (Exception e) {
|
||||
@@ -827,20 +819,6 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
||||
if (config.isEnablePostProcessFile()) {
|
||||
config.postProcessFile(outputFile, "supporting-common");
|
||||
}
|
||||
=======
|
||||
try {
|
||||
in = new FileInputStream(templateFile);
|
||||
} catch (Exception e) {
|
||||
// continue
|
||||
}
|
||||
if (in == null) {
|
||||
in = this.getClass().getClassLoader().getResourceAsStream(getCPResourcePath(templateFile));
|
||||
}
|
||||
File outputFile = writeInputStreamToFile(outputFilename, in, templateFile);
|
||||
files.add(outputFile);
|
||||
if (config.isEnablePostProcessFile() && !dryRun) {
|
||||
config.postProcessFile(outputFile, "supporting-common");
|
||||
>>>>>>> origin/master
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user