Skip to content
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

Introduced GeneratorProperties as a thread-safe clone of System Properties #1598

Conversation

gndrm
Copy link
Contributor

@gndrm gndrm commented Dec 3, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

see Issue #1597.

Implemented GeneratorProperties with a thread-local clone of SystemProperties to be used while Running generator-plugins.

@@ -0,0 +1,58 @@
/*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
* Copyright 2018 SmartBear Software
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For new files, there's no need to include line 3. Please refer to https://opensource.stackexchange.com/questions/7300/copyright-notice-in-the-file-header-apache-v2-license/7301#7301 for more information.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gndrm after you remove line 3, we'll be happy to merge your contributions to the master.

Have a nice weekend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, sorry for the late reply. was very short on time the last weeks.

@wing328 wing328 added this to the 4.0.0 milestone Dec 15, 2018
@wing328 wing328 merged commit 98ae7a8 into OpenAPITools:master Dec 19, 2018
@wing328
Copy link
Member

wing328 commented Dec 19, 2018

@gndrm thanks for the PR, which has been merged into master.

@wing328
Copy link
Member

wing328 commented Dec 19, 2018

@gndrm I got the following warning when running mvn javadoc:javadoc:

1 warning
[WARNING] Javadoc Warnings
[WARNING] /Users/williamcheng/Code/graphql-generator/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java:54: error: cannot find symbol
[WARNING] import org.openapitools.codegen.config.GeneratorProperties;
[WARNING] ^
[WARNING] symbol:   class GeneratorProperties
[WARNING] location: package org.openapitools.codegen.config

Did you get similar warning when running mvn javadoc:javadoc locally?

@gndrm
Copy link
Contributor Author

gndrm commented Dec 24, 2018

@wing328 i cannot reproduce your warning. i checked out the master today on a fresh system and ran

mvn clean install
mvn javadoc:javadoc

@wing328
Copy link
Member

wing328 commented Jan 2, 2019

@gndrm 👌

Thanks again for the contribution, which has been included in the 4.0.0-beta release: https://twitter.com/oas_generator/status/1079727020374806529.

Happy New Year and looking forward to more collaboration and contributions in 2019!

A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
…rties (OpenAPITools#1598)

* Introduced GeneratorProperties as a thread-safe clone of System Properties

* Removed unnecessary SmartBear copyright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants