Description
The database model <database> specified with schema pattern <databaseToDdl> is never used in <writedatatofile> Ant task code.
Instead, the whole database is read again ignoring the vital parameters like schemapattern as below. (WriteDataToFileCommand.java - Line 88)
getDataIO().writeDataToXML(getPlatform(),
new FileOutputStream(_outputFile), _encoding);
This creates many problems in Oracle db by retrieving all user objects.
Suggested Fix: The database model should be passed invoking the right method as shown below
~~~~~~~~~~~~
public void execute(DatabaseTaskBase task, Database model) throws BuildException
{
try
catch (Exception ex)
{ handleException(ex, ex.getMessage()); }}