FileSystem fs = ((FileSystemBased) configuration).getFileSystem();
String uri = fs.getPath(null, configuration.getURL(), configuration.getBasePath(),
configuration.getFileName());
if (uri == null)
{
throw new ConfigurationRuntimeException("Unable to determine file to monitor");
}
return fsManager.resolveFile(uri);
}
catch (FileSystemException fse)
{
String msg = "Unable to monitor " + configuration.getURL().toString();
log.error(msg);
throw new ConfigurationRuntimeException(msg, fse);
}
}