forked from loafle/openapi-generator-original
remove logging from php generator
This commit is contained in:
parent
e182ad7897
commit
ddd52f613f
@ -114,8 +114,6 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toPackagePath(String packageName, String basePath) {
|
public String toPackagePath(String packageName, String basePath) {
|
||||||
LOGGER.info("============================");
|
|
||||||
LOGGER.info("packageName = " + packageName);
|
|
||||||
packageName = packageName.replace(invokerPackage, "");
|
packageName = packageName.replace(invokerPackage, "");
|
||||||
if (basePath != null && basePath.length() > 0) {
|
if (basePath != null && basePath.length() > 0) {
|
||||||
basePath = basePath.replaceAll("[\\\\/]?$", "") + File.separatorChar;
|
basePath = basePath.replaceAll("[\\\\/]?$", "") + File.separatorChar;
|
||||||
@ -127,7 +125,6 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
} else { // for windows
|
} else { // for windows
|
||||||
regFirstPathSeparator = "^\\\\";
|
regFirstPathSeparator = "^\\\\";
|
||||||
}
|
}
|
||||||
LOGGER.info("regFirstPathSeparator = " + regFirstPathSeparator);
|
|
||||||
|
|
||||||
String regLastPathSeparator;
|
String regLastPathSeparator;
|
||||||
if ("/".equals(File.separator)) { // for mac, linux
|
if ("/".equals(File.separator)) { // for mac, linux
|
||||||
@ -135,8 +132,6 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
} else { // for windows
|
} else { // for windows
|
||||||
regLastPathSeparator = "\\\\$";
|
regLastPathSeparator = "\\\\$";
|
||||||
}
|
}
|
||||||
LOGGER.info("regLastPathSeparator= " + regLastPathSeparator);
|
|
||||||
LOGGER.info("packageName = " + packageName);
|
|
||||||
|
|
||||||
return (getPackagePath() + File.separatorChar + basePath
|
return (getPackagePath() + File.separatorChar + basePath
|
||||||
// Replace period, backslash, forward slash with file separator in package name
|
// Replace period, backslash, forward slash with file separator in package name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user