This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.testing-content-1.0.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-testing-content.git
commit 8157d06cb8ab87c8f848f8867f5c485e56dda25a Author: Bertrand Delacretaz <[email protected]> AuthorDate: Fri Nov 14 14:04:56 2014 +0000 SLING-3959 - Sightly contribution git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/sightly/testing-content@1639641 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 141 +++++++++++++++++++++ .../SLING-INF/apps/sightlytck/install.json | 11 ++ .../SLING-INF/apps/sightlytck/locales/de.json | 21 +++ src/main/resources/SLING-INF/sightlytck.json | 81 ++++++++++++ 4 files changed, 254 insertions(+) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8a401d3 --- /dev/null +++ b/pom.xml @@ -0,0 +1,141 @@ +<?xml version="1.0"?> +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <!-- ======================================================================= --> + <!-- P A R E N T P R O J E C T --> + <!-- ======================================================================= --> + <parent> + <groupId>org.apache.sling</groupId> + <artifactId>sling</artifactId> + <version>22</version> + <relativePath/> + </parent> + + <!-- ======================================================================= --> + <!-- P R O J E C T --> + <!-- ======================================================================= --> + <artifactId>org.apache.sling.scripting.sightly.testing-content</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>bundle</packaging> + + <name>Apache Sling Scripting Sightly Integration Tests Content</name> + + <description> + This bundle contains content adapted from the Adobe Sightly TCK meant to test the org.apache.sling.scripting.sightly + implementations. + </description> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/testing-content</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/testing + -content + </developerConnection> + <url>http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/sightly/testing-content</url> + </scm> + + <properties> + <sling.java.version>6</sling.java.version> + </properties> + + + <!-- ======================================================================= --> + <!-- B U I L D --> + <!-- ======================================================================= --> + <build> + <!-- --> + <resources> + <resource> + <directory>${basedir}/src/main/resources</directory> + </resource> + <resource> + <directory>${project.build.outputDirectory}/SLING-INF/sightlytck</directory> + <targetPath>SLING-INF/sightlytck</targetPath> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>generate-resources</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>io.sightly</groupId> + <artifactId>io.sightly.tck</artifactId> + <version>1.0.1</version> + <type>jar</type> + <outputDirectory>${project.build.directory}/sightlytck/</outputDirectory> + <includes>**/*.html,**/*.js,**/*.java</includes> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.7</version> + <executions> + <execution> + <id>copy-resources</id> + <phase>generate-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.build.outputDirectory}/SLING-INF/sightlytck/scripts</outputDirectory> + <resources> + <resource> + <directory>${project.build.directory}/sightlytck/testfiles/scripts/</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Sling-Initial-Content>SLING-INF;overwrite=true</Sling-Initial-Content> + </instructions> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.sling</groupId> + <artifactId>maven-sling-plugin</artifactId> + <configuration> + <failOnError>true</failOnError> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/src/main/resources/SLING-INF/apps/sightlytck/install.json b/src/main/resources/SLING-INF/apps/sightlytck/install.json new file mode 100644 index 0000000..0876b82 --- /dev/null +++ b/src/main/resources/SLING-INF/apps/sightlytck/install.json @@ -0,0 +1,11 @@ +{ + "jcr:primaryType" : "sling:Folder", + "org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl" : { + "jcr:primaryType" : "sling:OsgiConfig", + "resource.resolver.searchpath" : [ + "/apps", + "/libs", + "/sightlytck/scripts" + ] + } +} diff --git a/src/main/resources/SLING-INF/apps/sightlytck/locales/de.json b/src/main/resources/SLING-INF/apps/sightlytck/locales/de.json new file mode 100644 index 0000000..e26b648 --- /dev/null +++ b/src/main/resources/SLING-INF/apps/sightlytck/locales/de.json @@ -0,0 +1,21 @@ +{ + "jcr:primaryType" : "nt:unstructured", + "jcr:mixinTypes" : ["mix:language"], + "jcr:language" : "de", + "hello" : { + "jcr:primaryType" : "sling:MessageEntry", + "sling:key" : "hello", + "sling:message" : "Hallo" + }, + "hello_some_hint" : { + "jcr:primaryType" : "sling:MessageEntry", + "sling:key" : "hello ((some-hint))", + "sling:message" : "Hallo mit einem Hauch" + }, + "world" : { + "jcr:primaryType" : "sling:MessageEntry", + "sling:key" : "world", + "sling:message" : "Welt" + } + +} diff --git a/src/main/resources/SLING-INF/sightlytck.json b/src/main/resources/SLING-INF/sightlytck.json new file mode 100644 index 0000000..01dfb90 --- /dev/null +++ b/src/main/resources/SLING-INF/sightlytck.json @@ -0,0 +1,81 @@ +{ + "jcr:primaryType": "sling:Folder", + "exprlang": { + "jcr:primaryType": "sling:Folder", + "operators": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/exprlang/operators" + }, + "filters": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/exprlang/filters" + }, + "strings": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/exprlang/strings" + }, + "casing": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/exprlang/casing" + }, + "xss" : { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/exprlang/xss" + } + }, + "blockstatements": { + "jcr:primaryType": "sling:Folder", + "list": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/list" + }, + "test": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/test" + }, + "use": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/use" + }, + "unwrap": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/unwrap" + }, + "text": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/text" + }, + "resource": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/resource" + }, + "templatecall": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/templatecall" + }, + "attribute": { + "jcr:primartyType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/attribute" + }, + "include": { + "jcr:primartyType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/include" + }, + "element": { + "jcr:primartyType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/blockstatements/element" + } + + }, + "helpers": { + "jcr:primaryType": "sling:Folder", + "testresource": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/helpers/testresource" + }, + "remotetemplate": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "/sightlytck/scripts/helpers/remotetemplate" + } + } +} -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
