I found the solution after thorough debugging of the sources.
In short, the problem is in the second argument of repository.checkPath(filePath, -1);
and repository.getFile(filePath, -1, properties, out);
. filePath
must be file name and path to it must be in the baseUrl
field. After these changes everything started working correctly.
Regarding the snippet, in case of www/license.html
, one should pass 1
as a second arg.