private static Require createRequire(File dir, Context cx, Scriptable scope)
throws URISyntaxException
{
return new Require(cx, scope, new StrongCachingModuleScriptProvider(
new UrlModuleSourceProvider(Collections.singleton(new URI(
"file:" + dir.getAbsolutePath().replace(File.separatorChar,'/') + "/")),
Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
null, null, false);
}