listenerStarupException = e;
}
}
if (line.hasOption("d")) {
profileManager.addSchedulerListener(new ProfileSchedulerListener() {
@Override
public void profileExecutionScheduled(Profile profile) {
TaskTree tree = sync.executeProfile(profile, false);
if (tree == null) {
profile.setLastError(1, "An error occured while comparing filesystems.");