This commit is contained in:
wing328 2015-06-23 21:52:00 +08:00
parent 2979d93829
commit 351833a923

View File

@ -102,11 +102,11 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
return (getPackagePath() + File.separatorChar + basePath
// Replace period, backslash, forward slash with file separator in package name
+ packageName.replace("\\", File.separator).
replace(".", File.separator).replace("/", File.separator)
replace(".", File.separator).replace("/", File.separator));
// Trim prefix file separators from package path
.replaceAll("^" + File.separator, ""))
//.replaceAll("^" + File.separator, ""))
// Trim trailing file separators from the overall path
.replaceAll(File.separator + "$", "");
//.replaceAll(File.separator + "$", "");
}
public CodegenType getTag() {