else if (_path.canRead() && ! _path.isDirectory()) {
}
else if (_isOptional && ! _path.exists()) {
log.finer(L.l("resin:import '{0}' is not readable.", _path));
Environment.addDependency(new Depend(_path));
return;
}
else {
throw new ConfigException(L.l("Required file '{0}' can not be read for resin:import.",
_path.getNativePath()));
}
Object object = getObject();
String schema = null;
// Use the relax schema for beans with schema.
if (object instanceof SchemaBean) {
schema = ((SchemaBean) object).getSchema();
}
ArrayList<Path> paths;
if (_fileSet != null)
paths = _fileSet.getPaths();
else {
paths = new ArrayList<Path>();
paths.add(_path);
}
for (int i = 0; i < paths.size(); i++) {
Path path = paths.get(i);
log.config(L.l("resin:import '{0}'", path.getNativePath()));
Environment.addDependency(new Depend(path));
Config config = new Config();
// server/10hc
// config.setResinInclude(true);