You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/23 17:58:00 UTC

[jira] [Commented] (JENA-1434) Allow warnings to be treated as errors by RIOT

    [ https://issues.apache.org/jira/browse/JENA-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264660#comment-16264660 ] 

ASF GitHub Bot commented on JENA-1434:
--------------------------------------

GitHub user rvesse opened a pull request:

    https://github.com/apache/jena/pull/315

    Add --stop-warnings to riot (JENA-1434)

    Add the option to allow riot to abort on warnings

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rvesse/jena JENA-1434

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/315.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #315
    
----
commit 1f7082cb88a4f796bf305d680ab49509049eec11
Author: Rob Vesse <rv...@apache.org>
Date:   2017-11-23T17:56:23Z

    Add --stop-warnings to riot (JENA-1434)
    
    Add the option to allow riot to abort on warnings

----


> Allow warnings to be treated as errors by RIOT
> ----------------------------------------------
>
>                 Key: JENA-1434
>                 URL: https://issues.apache.org/jira/browse/JENA-1434
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: RIOT
>    Affects Versions: Jena 3.5.0
>            Reporter: Ian Dickinson
>            Assignee: Rob Vesse
>
> I would like to use `riot --validate` as part of an integration test for a system that generates Turtle. Ideally, the exit status for the riot command would be non-zero, indicating a problem, if the input was not valid. However, I see an exit status of zero always:
> {noformat}
> $ riot --validate alert.ttl && echo 'exit status is: ' $?
> 13:50:37 WARN  riot                 :: [line: 39, col: 25] Lexical form '2017-03-19T00:00:00+00:00' not valid for datatype XSD date
> 13:50:37 WARN  riot                 :: [line: 42, col: 20] Lexical form '' not valid for datatype XSD date
> 13:50:37 WARN  riot                 :: [line: 58, col: 20] Lexical form '' not valid for datatype XSD date
> exit status is:  0
> {noformat}
> Version info:
> {noformat}
> $ riot --version
> Jena:       VERSION: 3.5.0
> Jena:       BUILD_DATE: 2017-10-30T09:20:28+0000
> RIOT:       VERSION: 3.5.0
> RIOT:       BUILD_DATE: 2017-10-30T09:20:28+0000
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)