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 d6a67a93ec175f56d1bd210ff993d472d70c55f2 Author: Radu Cotescu <[email protected]> AuthorDate: Mon Mar 16 17:13:27 2015 +0000 @trivial: added license headers to pass RAT check git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/sightly/testing-content@1667070 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 16 +++++++++++++++- .../apps/sightly/scripts/template/bad-id.html | 18 ++++++++++++++++++ .../apps/sightly/scripts/template/template.html | 18 ++++++++++++++++++ .../SLING-INF/apps/sightly/scripts/use/ErrorPojo.java | 18 ++++++++++++++++++ .../resources/SLING-INF/apps/sightlyperf/loop/loop.jsp | 18 ++++++++++++++++++ .../SLING-INF/apps/sightlyperf/test/Test.java | 18 ++++++++++++++++++ .../SLING-INF/apps/sightlyperf/test/jsp-el.jsp | 18 ++++++++++++++++++ .../resources/SLING-INF/apps/sightlyperf/test/mode.jsp | 18 ++++++++++++++++++ .../SLING-INF/apps/sightlyperf/test/sly-java.html | 18 ++++++++++++++++++ .../SLING-INF/apps/sightlyperf/test/sly-js.html | 18 ++++++++++++++++++ .../resources/SLING-INF/apps/sightlyperf/test/test.js | 18 ++++++++++++++++++ .../resources/SLING-INF/apps/sightlyperf/test/test.jsp | 18 ++++++++++++++++++ 12 files changed, 213 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a529a91..d4830f3 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,6 @@ <!-- B U I L D --> <!-- ======================================================================= --> <build> - <!-- --> <resources> <resource> <directory>${basedir}/src/main/resources</directory> @@ -70,6 +69,21 @@ <targetPath>SLING-INF/sightlytck</targetPath> </resource> </resources> + <pluginManagement> + <plugins> + <plugin> + <!-- Extend RAT configuration from parent pom --> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes combine.children="append"> + <exclude>src/main/resources/SLING-INF/**/*.json</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> + <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html b/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html index 2d55e29..4fbfd11 100644 --- a/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html +++ b/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html @@ -1 +1,19 @@ +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> <template data-sly-template.bad-template-id=" @ ">should produce parsing exception</template> diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html b/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html index ca215d5..5269cef 100644 --- a/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html +++ b/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html @@ -1,2 +1,20 @@ +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> <template data-sly-template.templ=" @ ">SUCCESS</template> <div id="template" data-sly-call="${templ}"></div> \ No newline at end of file diff --git a/src/main/resources/SLING-INF/apps/sightly/scripts/use/ErrorPojo.java b/src/main/resources/SLING-INF/apps/sightly/scripts/use/ErrorPojo.java index 3eb58cd..cc7a48b 100644 --- a/src/main/resources/SLING-INF/apps/sightly/scripts/use/ErrorPojo.java +++ b/src/main/resources/SLING-INF/apps/sightly/scripts/use/ErrorPojo.java @@ -1,3 +1,21 @@ +/******************************************************************************* + * 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. + ******************************************************************************/ package apps.sightly.scripts.use; import javax.script.Bindings; diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/loop/loop.jsp b/src/main/resources/SLING-INF/apps/sightlyperf/loop/loop.jsp index 7075ccb..de960bf 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/loop/loop.jsp +++ b/src/main/resources/SLING-INF/apps/sightlyperf/loop/loop.jsp @@ -1,5 +1,23 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling"%> +<%--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--%> <p>selector: ${param.selector} [<strong>jsp</strong>, jsp-el, sly-java, sly-js]</p> <p>count: ${param.count} [1 - 20, <strong>20</strong>]</p> <c:forEach begin="1" end="${empty param.count || param.count < 1 || param.count > 20 ? 20 : param.count}"> diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/Test.java b/src/main/resources/SLING-INF/apps/sightlyperf/test/Test.java index cb826b1..7929a30 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/Test.java +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/Test.java @@ -1,3 +1,21 @@ +/******************************************************************************* + * 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. + ******************************************************************************/ package apps.sightlyperf.test; import java.util.Iterator; diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/jsp-el.jsp b/src/main/resources/SLING-INF/apps/sightlyperf/test/jsp-el.jsp index 953b9dc..cd00709 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/jsp-el.jsp +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/jsp-el.jsp @@ -1,6 +1,24 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling"%> +<%--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--%> <sling:defineObjects /> <c:set var="properties" value="${sling:adaptTo(resource,'org.apache.sling.api.resource.ValueMap')}" /> <c:set var="tag" value="${sling:getValue(properties, 'tag', '')}" /> diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/mode.jsp b/src/main/resources/SLING-INF/apps/sightlyperf/test/mode.jsp index ad61611..2c039d0 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/mode.jsp +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/mode.jsp @@ -1 +1,19 @@ +<%--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--%> <!-- <%="comment"%> --> \ No newline at end of file diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-java.html b/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-java.html index 6c3a1de..c0617a3 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-java.html +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-java.html @@ -1,3 +1,21 @@ +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> <div data-sly-use.test="apps.sightlyperf.test.Test" data-sly-unwrap> ${test.tag != null ? test.startTag : '' @ context = "unsafe"} ${test.text @ context = "text"} diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-js.html b/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-js.html index 4b1c2e6..1ea0a1e 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-js.html +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/sly-js.html @@ -1,3 +1,21 @@ +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> <div data-sly-use.test="test.js" data-sly-unwrap> ${test.tag != null ? test.startTag : '' @ context = "unsafe"} ${test.text @ context = "text"} diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/test.js b/src/main/resources/SLING-INF/apps/sightlyperf/test/test.js index f256d30..d7217cc 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/test.js +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/test.js @@ -1,3 +1,21 @@ +/******************************************************************************* + * 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. + ******************************************************************************/ use(function () { var test = {}; diff --git a/src/main/resources/SLING-INF/apps/sightlyperf/test/test.jsp b/src/main/resources/SLING-INF/apps/sightlyperf/test/test.jsp index 3296710..d9bc147 100644 --- a/src/main/resources/SLING-INF/apps/sightlyperf/test/test.jsp +++ b/src/main/resources/SLING-INF/apps/sightlyperf/test/test.jsp @@ -5,6 +5,24 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling"%> +<%--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ 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. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--%> <sling:defineObjects /> <% ValueMap properties = resource.adaptTo(ValueMap.class); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
