Generating Java client with customised templates works on current master (swagger-codegen-cli-2.2.0-SNAPSHOT.jar) but not on codegen 2.1.6
Description
I am using codegen 2.1.6 in order to generate Java client code via the following command:
java -jar swagger-codegen-cli-2.2.0-SNAPSHOT.jar generate -l java --artifact-version 1.0.0 --group-id com.olier.csp.sdk --artifact-id csp-sdk -i csp-host.json -o csp-sdk-generated-code---retrofit2 --invoker-package com.olier.csp.sdk.invoke --model-package com.olier.csp.sdk.model --api-package com.olier.csp.sdk.api --library retrofit2 --template-dir templates
I have one file in temoplates directory: ApiClient.mustache
It works great (and the ApiClient.mustache in the templates directory overides the one codegen/retroft arrives with) when using swagger-codegen-cli-2.2.0-SNAPSHOT.jar, but when building my product with swagger-codegen-cli-2.1.6.jar it does not work - seems like codegen ignores the ApiClient.mustache template.
Is that a bug in 2.1.6 that was fixed? or do I need to do additional stuff in 2.1.6 that I do not need to in 2.2.0?
TIA,
-Tal.
Swagger-codegen version
2.1.6, 2.2.0
Swagger declaration file content or url
n/a
Command line used for generation
java -jar swagger-codegen-cli-2.1.6.jar generate -l java --artifact-version 1.0.0 --group-id com.olier.csp.sdk --artifact-id csp-sdk -i csp-host.json -o csp-sdk-generated-code---retrofit2 --invoker-package com.olier.csp.sdk.invoke --model-package com.olier.csp.sdk.model --api-package com.olier.csp.sdk.api --library retrofit2 --template-dir templates
Steps to reproduce
Just use the above command.
Related issues
n/a
Suggest a Fix
n/a