public void run() {
try {
for (Runnable executable : executables) {
- executable.run();
+ doExecuteRunnable(executable);
}
} catch (RuntimeException e) {
if (failOnError)
}
}
+ public void doExecuteRunnable(Runnable runnable) {
+ runnable.run();
+ }
+
@SuppressWarnings(value = { "unchecked" })
public void afterPropertiesSet() throws Exception {
if (path != null) {