Skip to content

System Property Activation Strategy#163

Merged
chkal merged 11 commits into
togglz:masterfrom
DealerDotCom:property-strategy
Jun 2, 2016
Merged

System Property Activation Strategy#163
chkal merged 11 commits into
togglz:masterfrom
DealerDotCom:property-strategy

Conversation

@cpkelley
Copy link
Copy Markdown
Contributor

Activate a feature based on a system property. The property is string based and is not case sensitive.

Unit and benchmark tests were also added.

@chkal chkal merged commit fc9a54e into togglz:master Jun 2, 2016
@chkal
Copy link
Copy Markdown
Member

chkal commented Jun 2, 2016

Awesome! Thanks a lot! This looks great! Just merged it! 🍻

One idea: What about making the parameter value optional? So if the users omits the value it would mean: "The feature is active if the system property is set with any value". This way users could simply set something like -DdevMode on the command line without the need to set an actual value. So this would be similar to Maven which allows to disable tests by adding -DskipTests to the command line.

Thoughts?

@ryangardner ryangardner deleted the property-strategy branch June 2, 2016 19:36
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.

2 participants