* Will also check if the filesystems are accessible
* You can call this as the first function of start()
*/
protected void checkValidEngine() {
if (sourceFS == null) {
throw new EngineException("The source file system is not defined");
}
if (destinationFS == null) {
throw new EngineException("The destination file system is not defined");
}
try {
sourceFS.checkIfValid();
} catch (FileSystemException ex) {
throw new EngineException("The source file system is not accessible", ex);
}
try {
destinationFS.checkIfValid();
} catch (FileSystemException ex) {
throw new EngineException("The destination file system is not accessible", ex);
}
if (ignoreFiles == null) {
ignoreFiles = new ArrayList<String>();
}