Move installing sample to the attic
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810127 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/installing-dependencies/pom.xml b/installing-dependencies/pom.xml
deleted file mode 100644
index 4d46d6c..0000000
--- a/installing-dependencies/pom.xml
+++ /dev/null
@@ -1,142 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!-- 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">
-
- <parent>
- <groupId>org.apache</groupId>
- <artifactId>apache</artifactId>
- <version>17</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.sling</groupId>
- <artifactId>installing-dependencies-sample</artifactId>
- <packaging>bundle</packaging>
- <version>0.0.1-SNAPSHOT</version>
- <name>Dependency Install Sample</name>
- <description>Sample project showing how to install dependencies using a combination of maven-dependency-plugin and maven-sling-plugin</description>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <version>2.0.1</version>
- <configuration>
- <instructions>
- <Export-Package>org.apache.sling.samples.dependenciesinstall</Export-Package>
- <Sling-Test-Regexp>.*Test</Sling-Test-Regexp>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-testsupport</id>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <includeArtifactIds>org.apache.sling.junit.core</includeArtifactIds>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>javax.jcr</groupId>
- <artifactId>jcr</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.2</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.junit.core</artifactId>
- <version>1.0.8</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.jcr.api</artifactId>
- <version>2.1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.api</artifactId>
- <version>2.1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.5</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>autoInstallBundles</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.sling</groupId>
- <artifactId>maven-sling-plugin</artifactId>
- <version>2.0.4-incubator</version>
- <executions>
- <execution>
- <id>install-bundle</id>
- <goals>
- <goal>install</goal>
- </goals>
- </execution>
- <execution>
- <id>install-dependency1</id>
- <goals>
- <goal>install-file</goal>
- </goals>
- <phase>install</phase>
- <configuration>
- <bundleFileName>${project.build.directory}/dependency/org.apache.sling.junit.core-1.0.8.jar</bundleFileName>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <slingUrl>http://localhost:8080/system/console</slingUrl>
- <user>admin</user>
- <password>admin</password>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
diff --git a/installing-dependencies/src/main/java/org/apache/sling/samples/dependenciesinstall/MultiValuedResourceTypeTest.java b/installing-dependencies/src/main/java/org/apache/sling/samples/dependenciesinstall/MultiValuedResourceTypeTest.java
deleted file mode 100644
index 324ca51..0000000
--- a/installing-dependencies/src/main/java/org/apache/sling/samples/dependenciesinstall/MultiValuedResourceTypeTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.apache.sling.samples.dependenciesinstall;
-
-import java.util.Date;
-
-import javax.jcr.Node;
-import javax.jcr.Session;
-
-import junit.framework.Assert;
-
-import org.apache.sling.api.resource.Resource;
-import org.apache.sling.api.resource.ResourceResolver;
-import org.apache.sling.api.resource.ResourceResolverFactory;
-import org.apache.sling.junit.annotations.SlingAnnotationsTestRunner;
-import org.apache.sling.junit.annotations.TestReference;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-@RunWith(SlingAnnotationsTestRunner.class)
-public class MultiValuedResourceTypeTest {
-
- @TestReference
- private ResourceResolverFactory resourceResolverFactory;
-
- private String testPath;
-
- private ResourceResolver resourceResolver;
-
- @Before
- public void setup() throws Exception {
- resourceResolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
-
- Session session = resourceResolver.adaptTo(Session.class);
- testPath = "/test_" + new Date().getTime();
- Node testNode = session.getRootNode().addNode(testPath.substring(1), "nt:unstructured");
- testNode.setProperty("sling:resourceType", new String[] { "foo/bar", "bar/foo" });
- session.save();
- }
-
- @Test
- public void test() {
- Resource res = resourceResolver.resolve(testPath);
- Assert.assertEquals("foo/bar", res.getResourceType());
- }
-
- @After
- public void teardown() throws Exception {
- Session session = resourceResolver.adaptTo(Session.class);
- Node testNode = session.getNode(testPath);
- testNode.remove();
- session.save();
- }
-
-}