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
Support system properties as a way of providing configuration options to the CLI #4104
Support system properties as a way of providing configuration options to the CLI #4104
Conversation
…uration options to the CLI.
liquibase-cli/src/main/java/liquibase/integration/commandline/LiquibaseLauncher.java
Outdated
Show resolved
Hide resolved
Initial/Pre-Review Thoughts The changes look good to me. Thanks! Questions I have:
Potential risks:
What could make the full review difficult:
|
You are welcome @nvoxland Nathan. |
Hello @jccampanero ,maybe instead of using a Map from string to string, could not we use an Enum class where they key is similar to the string name (LIQUIBASE_HOME_JVM_PROPERTY_NAME ) and it would have a "value" field that would be the parameter value ("liquibase.home") . What do you think? This way we don't need to populate maps, etc. |
Sorry for the late reply @filipelautert. Yes, of course, I updated the code as requested. I used |
Nice, I believe it is better now as we can see that those values are used only for this purpose, thanks for applying the changes! |
You are welcome @filipelautert, my pleasure. |
It is perfectly fine @sayaliM0412, please, feel free to use the branch for your tests, as you consider it appropriate. |
Signed-off-by: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com>
…for_jvm_properties
…pport_for_jvm_properties # Conflicts: # .github/workflows/build-branch.yml # .github/workflows/build.yml # liquibase-cli/src/main/java/liquibase/integration/commandline/LiquibaseLauncher.java
Kudos, SonarCloud Quality Gate passed! |
Impact
Description
The
LiquibaseLauncher
code, and the Liquibase CLI in general, have been enriched to support passing the different configuration options as JVM system properties.Previously, such information could only be passed as operating system environment variables.
Fixes and augments, in order to provide a uniform way of reading the different configuration options, the scope of #3777.
Things to be aware of
Nothing.
Things to worry about
Nothing.
Additional Context
No test have been created for the issue.