mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 17:47:07 +00:00
Various fixes (#1)
* fix pistache c++ server in windows * skip perl test * comment out go tests * Fix go test, manually fix go client * fix rails batch file * fix tab in java file * install rust * fix swift2-deprecated in windows batch file * fix rust installation * comment out js test * update swift windows batch files * update tizen batch script * comment out ktor test
This commit is contained in:
@@ -41,7 +41,7 @@ import java.util.Map;
|
||||
|
||||
public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen implements BeanValidationFeatures {
|
||||
public static final String SERVER_PORT = "serverPort";
|
||||
/**
|
||||
/**
|
||||
* Name of the sub-directory in "src/main/resource" where to find the
|
||||
* Mustache template for the JAX-RS Codegen.
|
||||
*/
|
||||
|
||||
@@ -251,15 +251,15 @@ public class CppPistacheServerCodegen extends AbstractCppCodegen {
|
||||
String result = super.apiFilename(templateName, tag);
|
||||
|
||||
if (templateName.endsWith("impl-header.mustache")) {
|
||||
int ix = result.lastIndexOf('/');
|
||||
int ix = result.lastIndexOf(File.separatorChar);
|
||||
result = result.substring(0, ix) + result.substring(ix, result.length() - 2) + "Impl.h";
|
||||
result = result.replace(apiFileFolder(), implFileFolder());
|
||||
} else if (templateName.endsWith("impl-source.mustache")) {
|
||||
int ix = result.lastIndexOf('/');
|
||||
int ix = result.lastIndexOf(File.separatorChar);
|
||||
result = result.substring(0, ix) + result.substring(ix, result.length() - 4) + "Impl.cpp";
|
||||
result = result.replace(apiFileFolder(), implFileFolder());
|
||||
} else if (templateName.endsWith("api-server.mustache")) {
|
||||
int ix = result.lastIndexOf('/');
|
||||
int ix = result.lastIndexOf(File.separatorChar);
|
||||
result = result.substring(0, ix) + result.substring(ix, result.length() - 4) + "MainServer.cpp";
|
||||
result = result.replace(apiFileFolder(), outputFolder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user