You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2009/03/28 15:19:50 UTC

[jira] Resolved: (SLING-653) adding a validator plugin for .json files that could be found

     [ https://issues.apache.org/jira/browse/SLING-653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-653.
------------------------------------

    Resolution: Fixed

In revision 759465 I've added a new validation mojo which scans all included resources. The idea is to have a general purpose validation mojo which
checks several things. As a first check I've added the json validation.
The mojo can be skipped by configuration and the json validation can be skipped as well (this will allow to just skip json validation once we add other validations)
Please cross check and then close this bug.

> adding a validator plugin for .json files that could be found
> -------------------------------------------------------------
>
>                 Key: SLING-653
>                 URL: https://issues.apache.org/jira/browse/SLING-653
>             Project: Sling
>          Issue Type: New Feature
>          Components: Maven Plugins
>    Affects Versions: Maven Sling Plugin 2.0.2
>            Reporter: Thierry Yge
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: Maven Sling Plugin 2.0.4
>
>         Attachments: BundleValidateJSONFilesMojo.java
>
>
> It could be nice to have the sling maven plugin that build the bundle to validate the .json files that are found, thus it avoid to find the error during the
> deployment of the bundle
> simple error message that would tell in which file and where the problem occur would help.
> It could use the json library like "JSONObject.fromObject()" to parse the .json files and catch the JSONException when it find an error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.