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

PLC4X-307 Add support for custom generator options / customized packages #263

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

splatch
Copy link
Contributor

@splatch splatch commented Jul 29, 2021

These two commits are follow up to build tools changes. First commit makes sure generators are fine and can compile, other one opens test framework for use of customized output packages.

Ships a new 'package' parameter for Java code generator which lets to specify root package of generated code.
In case if types for serializer ot driver test suite are in custom package they might be pointed via 'package' option.
By default above will always fallback to 'org.apache.plc4x' packages to keep backward compatybility.
@splatch splatch requested review from chrisdutz and sruehl July 29, 2021 13:24
Copy link
Contributor

@sruehl sruehl left a comment

Choose a reason for hiding this comment

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

bit stringly typed so maybe we can add some sanity checks that protocolName, and output flavor is present on getMessageIOType but other than that LGTM

@splatch
Copy link
Contributor Author

splatch commented Jul 29, 2021

bit stringly typed so maybe we can add some sanity checks that protocolName, and output flavor is present on getMessageIOType but other than that LGTM

I agree, it is indeed yet another string trap. I'd wish we could migrate to typed configuration and minimize amount of arguments passed over test framework (language, protocolName, driverName). Yet for that I believe we need to book some exclusive time reserved only for test framework.

@hutcheb hutcheb merged commit 8671940 into develop Jul 29, 2021
@sruehl sruehl deleted the feature/PLC4X-307 branch August 9, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants