1 | |
package liquibase.integration.ant; |
2 | |
|
3 | |
import liquibase.database.Database; |
4 | |
import liquibase.diff.DiffResult; |
5 | |
|
6 | |
import java.io.PrintStream; |
7 | |
|
8 | 0 | public class DiffDatabaseToChangeLogTask extends DiffDatabaseTask { |
9 | |
@Override |
10 | |
protected void outputDiff(PrintStream writer, DiffResult diffResult, Database targetDatabase) throws Exception { |
11 | 0 | if (getChangeLogFile() == null) { |
12 | 0 | diffResult.printChangeLog(writer, targetDatabase); |
13 | |
} else { |
14 | 0 | diffResult.printChangeLog(getChangeLogFile(), targetDatabase); |
15 | |
} |
16 | 0 | } |
17 | |
} |