diff --git a/symmetric-client/src/main/java/org/jumpmind/symmetric/AbstractCommandLauncher.java b/symmetric-client/src/main/java/org/jumpmind/symmetric/AbstractCommandLauncher.java index 8a99d14955..4fe3591898 100644 --- a/symmetric-client/src/main/java/org/jumpmind/symmetric/AbstractCommandLauncher.java +++ b/symmetric-client/src/main/java/org/jumpmind/symmetric/AbstractCommandLauncher.java @@ -271,6 +271,10 @@ protected void testConnection() { } protected IDatabasePlatform getDatabasePlatform(boolean testConnection) { + return getDatabasePlatform(testConnection, false); + } + + protected IDatabasePlatform getDatabasePlatform(boolean testConnection, boolean symmetricPlatform) { if (platform == null) { if (testConnection) { testConnection(); @@ -278,11 +282,13 @@ protected IDatabasePlatform getDatabasePlatform(boolean testConnection) { ITypedPropertiesFactory factory = PropertiesUtil.createTypedPropertiesFactory(propertiesFile, null); TypedProperties properties = factory.reload(propertiesFile); if (properties.is(ParameterConstants.NODE_LOAD_ONLY, false)) { - TypedProperties copiedProperties = new TypedProperties(); - String prefix = ParameterConstants.LOAD_ONLY_PROPERTY_PREFIX; - copyProperties(properties, copiedProperties, prefix, BasicDataSourcePropertyConstants.ALL_PROPS); - copyProperties(properties, copiedProperties, prefix, ParameterConstants.ALL_JDBC_PARAMS); - properties = copiedProperties; + if (!symmetricPlatform) { + TypedProperties copiedProperties = new TypedProperties(); + String prefix = ParameterConstants.LOAD_ONLY_PROPERTY_PREFIX; + copyProperties(properties, copiedProperties, prefix, BasicDataSourcePropertyConstants.ALL_PROPS); + copyProperties(properties, copiedProperties, prefix, ParameterConstants.ALL_JDBC_PARAMS); + properties = copiedProperties; + } } platform = ClientSymmetricEngine.createDatabasePlatform(null, properties, null, false); } diff --git a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java index 63542e26f0..1e72f863a8 100644 --- a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java +++ b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java @@ -51,6 +51,7 @@ public class DbExportCommand extends AbstractCommandLauncher { private static final String OPTION_DIR = "dir"; private static final String OPTION_WHERE = "where"; private static final String OPTION_EXCLUDE_COLUMNS = "exclude-columns"; + private static final String OPTION_SYMMETRIC_PLATFORM = "symmetric"; public DbExportCommand() { super("dbexport", "[tablename...]", "DbExport.Option."); @@ -97,11 +98,12 @@ protected void buildOptions(Options options) { addOption(options, null, OPTION_WHERE, true); addOption(options, "i", OPTION_COMMENTS, false); addOption(options, null, OPTION_EXCLUDE_COLUMNS, true); + addOption(options, null, OPTION_SYMMETRIC_PLATFORM, false); } @Override protected boolean executeWithOptions(CommandLine line) throws Exception { - DbExport dbExport = new DbExport(getDatabasePlatform(false)); + DbExport dbExport = new DbExport(getDatabasePlatform(false, line.hasOption(OPTION_SYMMETRIC_PLATFORM))); if (line.hasOption(OPTION_DIR)) { String dir = line.getOptionValue(OPTION_DIR); if (new File(dir).exists()) {