2021-04-25 09:58:26 +00:00
|
|
|
include = function (filepath, isAbsolute) {
|
|
|
|
if (isAbsolute === undefined || isAbsolute == false) {
|
|
|
|
filepath = Packages.ro.sync.ecss.extensions.commons.operations.CommonsOperationsUtil.expandAndResolvePath(authorAccess, filepath);
|
2021-04-25 10:22:17 +00:00
|
|
|
}
|
|
|
|
var text = new java.lang.String(java.nio.file.Files.readAllBytes(java.nio.file.Paths. get (java.net.URI(filepath))));
|
2021-04-25 09:58:26 +00:00
|
|
|
text = String(text);
|
|
|
|
eval(text);
|
2021-04-25 10:22:17 +00:00
|
|
|
}
|