Apache Sling RepoInit Parser

Clone this repo:
  1. 56df4ec [maven-release-plugin] prepare for next development iteration by Eric Norman · 6 weeks ago master
  2. 573582e [maven-release-plugin] prepare release org.apache.sling.repoinit.parser-1.7.0 by Eric Norman · 6 weeks ago org.apache.sling.repoinit.parser-1.7.0
  3. a578e25 ignore Eclipse m2e warning about javacc-maven-plugin by Eric Norman · 6 weeks ago
  4. ed466d0 SLING-11402 Update to Sling Bundle Parent 48 (#23) by Eric Norman · 6 weeks ago
  5. 94fd99f Merge pull request #24 from apache/fix/SLING-11427-Namespace-with-hashtag by Andreas Schaefer · 7 weeks ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central repoinit License

Apache Sling RepoInit Parser

This module is part of the Apache Sling project.

It implements the Repository Initialization language parser.

To parse repoinit statements use the RepoInitParser service.

The companion jcr-repoinit module can execute the resulting Operations on a JCR content repository.

The JavaCC parser grammar is defined in the RepoInitGrammar.jjt file, which has links to the JavaCC documentation.

Dependent modules

The Feature Model Analyser uses this parser to validate repoinit statements embedded in feature models. It should be kept up to date with new releases of this module.

The bnd.bnd file defines an org.apache.sling.repoinit.language OSGi capability which indicates the version of the repoinit language that this parser implements. That value should be incremented when the grammar changes, so that modules that depend on those changes can require the appropriate version.

Documenting the language

The Sling Website Repository Initialization page describes the general repoinit principles and is meant to show examples of all possible language constructs.

The concatenate-test-scenarios.sh script found in this folder can be used to update the language examples found at the end of that page.