-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Set up environment variables using the Maven plugin #12800
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
Conversation
|
YEAH!! |
| } | ||
|
|
||
|
|
||
| private static class Assert { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a strange way to do this. Why not a method with 2 parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, thank you for your comment.
The reason why I did this is encapsulation System.getenv('key') and just do it similar to
the Assertions.assertThat(envKey).isEqualTo(val).
Of course, it could be
void assert(String envKey, String expectedValue) {
///
}But in this particular case, it doesn't matter, but still if you have any concerns we can discuss this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're considering adding something more in line with what the surefire plugin does (see #10741 for System properties with systemPropertyVariables). I'd like this PR to follow the same lead with a environmentVariables map.
Could you please update the PR in that direction?
|
sure, I will do this later. |
|
PR ?
2018-04-17 8:02 GMT-04:00 Stéphane Nicoll <[email protected]>:
… ***@***.**** requested changes on this pull request.
We're considering adding something more in line with what the surefire
plugin does (see #10741
<#10741> for System
properties with systemPropertyVariables). I'd like this PR to follow the
same lead with a environmentVariables map.
Could you please update the PR in that direction?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12800 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhZzBfJkOdEBv6Lo7WvlHtkpGBG2YGagks5tpdnLgaJpZM4TLtgZ>
.
--
* Me Too! *
|
|
@MeeTooFirst1 PR stands for pull-request but please don't spam our issue tracker with questions. |
0e2a9a3 to
0cbbd54
Compare
|
@snicoll done :) |
* pr/12800: Polish "Add support for environment variables" Add support for environment variables
|
@nosan thanks a lot for your contribution. This is now merged in master with a polish commit. |
see gh-11065