git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@828
de75baf8-a10c-0410-a50a-
987c0e22f00f
throw IOException("Unable to access local file ($1)", params(1,m_source.c_str()));
m_lock = RWLock::create();
}
+ FILE* cfile = fopen(m_source.c_str(), "r");
+ if (cfile)
+ fclose(cfile);
+ else
+ throw IOException("Unable to access local file ($1)", params(1,m_source.c_str()));
log.debug("using local resource (%s), will %smonitor for changes", m_source.c_str(), m_lock ? "" : "not ");
}
else {