Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Cannot pass property using -Dproperty=value

$
0
0
When I try to run Liquibase on the command line passing a property using the -D switch I always get an error:

  1. liquibase -Dtable_owner=foo --defaultsFile=connection.properties --changeLogFile=changelog.xml update

results in the error:

Errors:
  Unexpected value -Dtable_owner=foo: parameters must start with a '--'

Usage: java -jar liquibase.jar [options] [command]
(Needless to say that --Dtable_owner=foo doesn't work either)

When I try the -D at the end of the line (as shown here)

  1. liquibase --defaultsFile=connection.properties --changeLogFile=changelog.xml update -Dtable_owner=foo

I get the error:


Unexpected error running Liquibase: Unknown parameter: 'table_owner'

SEVERE 11/3/15 10:41 AM: liquibase: Unknown parameter: 'table_owner'
liquibase.exception.CommandLineParsingException: Unknown parameter: 'table_owner'
        at liquibase.integration.commandline.Main.parsePropertiesFile(Main.java:453)
        at liquibase.integration.commandline.Main.run(Main.java:159)
        at liquibase.integration.commandline.Main.main(Main.java:99)


What am I missing?
I am using Liquibase 3.4.1

How do I pass a parameter (that is used with "${table_owner}" in the changeLog) on the command line?



Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>