MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / load

Method load

jOOQ/src/main/java/org/jooq/impl/CommitsImpl.java:287–302  ·  view source on GitHub ↗
(java.io.File directory)

Source from the content-addressed store, hash-verified

285 }
286
287 @Override
288 public final Commits load(java.io.File directory) throws IOException {
289 if (log.isDebugEnabled())
290 log.debug("Reading directory", directory);
291
292 FilePattern sqlPattern = new FilePattern().basedir(directory).pattern("**.sql");
293 FilePattern xmlPattern = new FilePattern().basedir(directory).pattern("**.xml");
294 List<Source> sql, xml;
295
296 if (!isEmpty(sql = sqlPattern.collect()))
297 return loadSQL(sqlPattern, sql);
298 else if (!isEmpty(xml = xmlPattern.collect()))
299 return loadXML(xmlPattern, xml);
300 else
301 return this;
302 }
303
304 private final Commits loadSQL(FilePattern pattern, List<Source> files) throws IOException {
305

Callers 2

loadSQLMethod · 0.95
loadXMLMethod · 0.95

Calls 15

collectMethod · 0.95
loadSQLMethod · 0.95
loadXMLMethod · 0.95
mapMethod · 0.95
filesMethod · 0.95
commitMethod · 0.95
mergeMethod · 0.95
tagMethod · 0.95
addMethod · 0.95
getCommitsMethod · 0.80
getTagsMethod · 0.80
getParentsMethod · 0.80

Tested by

no test coverage detected