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

Correct lookup environment variable - system property - resource bundle #754

Merged
merged 1 commit into from
Jul 22, 2014

Conversation

brasmusson
Copy link
Contributor

The intention is that values should be looked up in the order:

  • from environment variable
  • from system property
  • from resource bundle

When aliases were introduced in 26938a8, the detailed order of lookup became:

  • alias from environment variable
  • alias from system property
  • alias from resource bundle
  • key from environment variable
  • key from system property
  • key from resource bundle

The cucumber-java-skeleton project has a cucumber.properties file containing CUCUMBER_OPTIONS="...", so currently usingmvn -Dcucumber.options="..." has no effect, only mvn -DCUCUMBER_OPTIONS="..." work.

Change the lookup both include both the alias (HELLO_THERE) and the key (hello.there) from each source, before moving to the next source.

Lookup both the alias (HELLO_THERE) and the key (hello.there) from each
source, before moving to the next source.
@aslakhellesoy
Copy link
Contributor

LGTM!

brasmusson added a commit to brasmusson/cucumber-jvm that referenced this pull request Jul 22, 2014
@brasmusson brasmusson merged commit fd76431 into cucumber:master Jul 22, 2014
@brasmusson brasmusson deleted the env-lookup-fix branch July 22, 2014 13:25
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants