"$ {databasePassword}", "$databaseDriver") [ [id: 1L, reportName: "SuggestionOrder", reportFileName: src/main/resources/export/commercialSuggestionOrder.xml"], [id: 2L, reportName: "commercialSuggestionOrderDetail", reportFileName: "src/main/resources/export/commercialSuggestionOrderDetail.xml"], [id: 3L, reportName: "order", reportFileName: "src/main/resources/export/order.xml"] ].each { db.execute "Insert into Report (Id, ReportName, ReportTemplate) values (?, ?, ?)", [it.id, it.reportName, new FileInputStream(it.reportFileName)] } }