[
https://issues.apache.org/jira/browse/JENA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15641883#comment-15641883
]
ASF GitHub Bot commented on JENA-1197:
--------------------------------------
Github user afs commented on the issue:
https://github.com/apache/jena/pull/188
That looks OK for one file. What to do about multiple files on the command
line is trickier - that is, there are reasonable use cases for different
behaviors.
The call stack is (deepest first):
{noformat}
parseRIOT(String, String, TypedInputStream) : void - riotcmd.CmdLangParse
parseFile(String, String, TypedInputStream) : void - riotcmd.CmdLangParse
parseFile(String) : void - riotcmd.CmdLangParse
exec$() : void - riotcmd.CmdLangParse
exec() : void - riotcmd.CmdLangParse
{noformat}
where the multiple file loop is in `exec$()`. I wonder if the "parse*"
ought to return true/false (or throw a custom exception) as to whether they
succeeded or not and the decision of whether and when to exit is made in
`exec$` (just before the `postParse` step). Then an attempt to parse all the
files happens and then `exit(1)` if any are broken.
> riot command : provide exit codes when validating.
> --------------------------------------------------
>
> Key: JENA-1197
> URL: https://issues.apache.org/jira/browse/JENA-1197
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Andy Seaborne
> Assignee: Bruno P. Kinoshita
>
> See discussion on user@
> https://lists.apache.org/thread.html/f2ec45ff2ddf91b39270b2c23062b92af1817c8d0ac42af928cbdb5b@%3Cusers.jena.apache.org%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)