Skip to content

Commit

Permalink
SqlRepositoryConfiguration: fullObjectFormat can by defined by sysprop
Browse files Browse the repository at this point in the history
E.g. JVM arg "-DfullObjectFormat=YAML", default is still XML for
reasons stated in MID-6321.
  • Loading branch information
virgo47 committed Jun 12, 2020
1 parent a5e9434 commit 70d7676
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -484,7 +484,8 @@ public SqlRepositoryConfiguration(Configuration configuration) {

useZip = configuration.getBoolean(PROPERTY_USE_ZIP, false);
fullObjectFormat = configuration.getString(
PROPERTY_FULL_OBJECT_FORMAT, PrismContext.LANG_XML);
PROPERTY_FULL_OBJECT_FORMAT,
System.getProperty(PROPERTY_FULL_OBJECT_FORMAT, PrismContext.LANG_XML));

// requires asServer, baseDir, fileName, port
jdbcUrl = configuration.getString(PROPERTY_JDBC_URL, embedded ? getDefaultEmbeddedJdbcUrl() : null);
Expand Down

0 comments on commit 70d7676

Please sign in to comment.