()
| 356 | } |
| 357 | |
| 358 | private void runCustomScript() throws IOException { |
| 359 | String customScriptFileName = MainHandler.getCurrentInstance().getProperty(MIGRATION_CUSTOMINITSCRIPT, |
| 360 | ""); |
| 361 | if (customScriptFileName.length() > 0){ |
| 362 | File f = new File(customScriptFileName); |
| 363 | if (f.exists()){ |
| 364 | String scriptContent = FileUtils.readFile(customScriptFileName); |
| 365 | execQuery(scriptContent); |
| 366 | logger.l5(scriptContent + " = ok"); |
| 367 | } else { |
| 368 | logger.l5(MessageFormat.format("custom script {0} not found", customScriptFileName)); |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | } |
no test coverage detected