int filesExecuted = 0;
List<File> sqlFiles = new ArrayList<File>();
collectSqlFiles(baseDirectory, sqlFiles);
for (File sqlFile : sqlFiles) {
Resource resource = new FileSystemResource(sqlFile.getAbsolutePath());
SqlScript script = new SqlScript(resource.loadAsString("UTF-8"), support);
System.out.format("execute sql file: %s%n", sqlFile.getAbsolutePath());
script.execute(support.getJdbcTemplate());
filesExecuted++;
}