fix another replaceall in perl codegen

This commit is contained in:
wing328
2016-01-15 16:03:35 +08:00
parent cbbb48a4e4
commit bfb8cdce2e
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
if (additionalProperties.containsKey(MODULE_NAME)) {
setModuleName((String) additionalProperties.get(MODULE_NAME));
setModulePathPart(moduleName.replaceAll("::",String.valueOf(File.separatorChar)));
setModulePathPart(moduleName.replaceAll("::", Matcher.quoteReplacement(File.separator)));
} else {
additionalProperties.put(MODULE_NAME, moduleName);
}

View File

@@ -8,7 +8,7 @@ WWW::SwaggerClient::Role - a Moose role for the Swagger Petstore
Automatically generated by the Perl Swagger Codegen project:
- Build date: 2016-01-15T15:46:17.239+08:00
- Build date: 2016-01-15T15:57:32.150+08:00
- Build package: class io.swagger.codegen.languages.PerlClientCodegen
- Codegen version:

View File

@@ -37,7 +37,7 @@ has version_info => ( is => 'ro',
default => sub { {
app_name => 'Swagger Petstore',
app_version => '1.0.0',
generated_date => '2016-01-15T15:46:17.239+08:00',
generated_date => '2016-01-15T15:57:32.150+08:00',
generator_class => 'class io.swagger.codegen.languages.PerlClientCodegen',
} },
documentation => 'Information about the application version and the codegen codebase version'
@@ -103,7 +103,7 @@ Automatically generated by the Perl Swagger Codegen project:
=over 4
=item Build date: 2016-01-15T15:46:17.239+08:00
=item Build date: 2016-01-15T15:57:32.150+08:00
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen