|
|
@ -14,6 +14,10 @@ public class PluginExporter { |
|
|
|
FileUtil.deldirs(outputDir); |
|
|
|
new File(outputDir).mkdirs(); |
|
|
|
|
|
|
|
if(!configure.getIsExportPlatformLiquibasePluginFile()){ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
StringBuilder sb =new StringBuilder(); |
|
|
|
sb.append("[").append("\n"); |
|
|
|
sb.append(" {").append("\n"); |
|
|
@ -21,8 +25,12 @@ public class PluginExporter { |
|
|
|
sb.append(" \"order\": 100000").append(",\n"); |
|
|
|
sb.append(" \"description\": \"\"").append(",\n"); |
|
|
|
sb.append(" \"locations\": [").append("\n"); |
|
|
|
if(configure.getIsExportTableSchemaLiquibaseFile()) { |
|
|
|
sb.append(" \"").append("classpath:/liquibase/schema/").append(LiquibaseExporter.getLiquibaseChangeLogXmlFileName(configure)).append("_DDL.xml\"").append(",\n"); |
|
|
|
} |
|
|
|
if(configure.getIsExportDataCsvFile()) { |
|
|
|
sb.append(" \"").append("classpath:/liquibase/data/").append(LiquibaseExporter.getLiquibaseChangeLogXmlFileName(configure)).append("_DATA.xml\"").append("\n"); |
|
|
|
} |
|
|
|
sb.append(" ]").append("\n"); |
|
|
|
sb.append(" }").append("\n"); |
|
|
|
sb.append("]").append("\n"); |
|
|
|