jslt: import doesn't work from the command-line: not found error no matter what you do
import "utilities.jslt" as utils
{ * : . }
Got error below. File utilities.jslt
absolutely, positively, definitely exists.
Exception in thread "main" com.schibsted.spt.data.jslt.JsltException: Cannot load resource 'utilities.jslt': not found
at com.schibsted.spt.data.jslt.impl.ClasspathResourceResolver.resolve(ClasspathResourceResolver.java:42)
at com.schibsted.spt.data.jslt.parser.ParserImpl.compileImport(ParserImpl.java:70)
at com.schibsted.spt.data.jslt.parser.ParserImpl.doImport(ParserImpl.java:590)
at com.schibsted.spt.data.jslt.parser.ParserImpl.processImports(ParserImpl.java:576)
at com.schibsted.spt.data.jslt.parser.ParserImpl.compile(ParserImpl.java:93)
at com.schibsted.spt.data.jslt.parser.ParserImpl.compileExpression(ParserImpl.java:55)
at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:226)
at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:62)
at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:51)
at com.schibsted.spt.data.jslt.cli.JSLT.main(JSLT.java:33)
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16
hey @sahilsh1 refer to this https://github.com/schibsted/jslt/issues/134#issuecomment-1438081800