Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[jaxrs] Updated generator to use additional properties instead of system properties #1731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
wing328 merged 4 commits into swagger-api:master from evigeant:feature/jaxrs-no-sys-property
Jan 4, 2016

Conversation

@evigeant
Copy link
Contributor

@evigeant evigeant commented Dec 17, 2015

In the java jaxrs server generation code, Java system properties were used to configure the output folder, the code packages and the implementation output folder.

There are already facilities to configure the output folder and the packages, so these were used instead of the system properties. For the implementation package, the additional properties were used instead of system properties as this seems to be the standard mechanism to pass additional configuration to the generator.

Java system properties are very hard to set from a maven build and this prevented me from confguring the implementation folder correctly from my maven build.

Copy link
Contributor

wing328 commented Dec 28, 2015

@evigeant thanks for the PR. The change looks good to me as it replaces system property with additional configuration to make the user experience more consistent.

I'll merge the PR tomorrow.

Copy link
Contributor

wing328 commented Dec 28, 2015

@fehguy do you want to make similar change to the Java inflector codegen? Ref:

apiPackage = System.getProperty("swagger.codegen.inflector.apipackage", "io.swagger.handler");

@wing328 wing328 added this to the v2.1.5 milestone Dec 28, 2015
Copy link
Contributor

fehguy commented Dec 28, 2015

@wing328 let me get back on this--I need to make sure the calling syntax is either back compatible or very well documented for each client

Copy link
Contributor

fehguy commented Dec 31, 2015

OK we should merge this. @evigeant could you please rebase?

Copy link
Contributor Author

I will rebase this soon, I'm not home currently
On Dec 30, 2015 11:01 PM, "Tony Tam" notifications@github.com wrote:

OK we should merge this. @evigeant https://github.com/evigeant could
you please rebase?


Reply to this email directly or view it on GitHub
#1731 (comment)
.

Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
	modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
Copy link
Contributor Author

evigeant commented Jan 3, 2016

@wing328 I merged master so that this branch could be merged automatically, however, the Travis CI build failed with an error in the Petstore Clojure client unrelated to what I was fixing.

What should I do now? Should I attempt to fix the clojure error? Or is it random timeout error and I should push a fake commit so that Travis CI builds again?

Copy link
Contributor

wing328 commented Jan 4, 2016

@evigeant I saw that you've pushed another commit and the CI passed. We'll review and approve this PR shortly. Thanks for the contribution.

Copy link
Contributor

wing328 commented Jan 4, 2016

Tests look good.

wing328 added a commit that referenced this pull request Jan 4, 2016
[jaxrs] Updated generator to use additional properties instead of system properties
@wing328 wing328 merged commit ef24b66 into swagger-api:master Jan 4, 2016
@evigeant evigeant deleted the feature/jaxrs-no-sys-property branch February 13, 2016 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

v2.1.5

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /