Merge branch 'maint-rel-1.6' into develop
This commit is contained in:
commit
1b1f772a44
2 changed files with 3 additions and 2 deletions
|
@ -537,13 +537,14 @@ public class PageDaoJena extends JenaBaseDao implements PageDao {
|
||||||
List<String> actions = new ArrayList<String>();
|
List<String> actions = new ArrayList<String>();
|
||||||
|
|
||||||
Model dModel = getOntModelSelector().getDisplayModel();
|
Model dModel = getOntModelSelector().getDisplayModel();
|
||||||
|
dModel.enterCriticalSection(false);
|
||||||
try{
|
try{
|
||||||
QueryExecution qe =
|
QueryExecution qe =
|
||||||
QueryExecutionFactory.create( requiredActionsQuery, dModel, initialBindings);
|
QueryExecutionFactory.create( requiredActionsQuery, dModel, initialBindings);
|
||||||
actions = executeQueryToList( qe );
|
actions = executeQueryToList( qe );
|
||||||
qe.close();
|
qe.close();
|
||||||
}finally{
|
}finally{
|
||||||
dModel.enterCriticalSection(false);
|
dModel.leaveCriticalSection();
|
||||||
}
|
}
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,7 +285,7 @@ public class FreemarkerTemplateLoader implements TemplateLoader {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean fileQualifies(Path path) {
|
public boolean fileQualifies(Path path) {
|
||||||
return Files.isRegularFile(path) && Files.isReadable(path);
|
return Files.isReadable(path) && !Files.isDirectory(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SortedSet<PathPieces> getMatches() {
|
public SortedSet<PathPieces> getMatches() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue