You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:27:53 UTC

[sling-org-apache-sling-starter-startup] branch master created (now f1c8124)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git.


      at f1c8124  [maven-release-plugin] prepare for next development iteration

This branch includes the following new commits:

     new 1af49b7  Move starter startup bundle
     new 9c71cf1  Rename package
     new 4b49e0a  Add missin readme
     new 9833c89  Add javadoc plugin configuration
     new 578a838  Add svn info
     new 1ad673f  [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.0
     new 21be1d4  [maven-release-plugin] prepare for next development iteration
     new 116b6b2  Correct bundle activator
     new 973c2eb  [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.2
     new f1c8124  [maven-release-plugin] prepare for next development iteration

The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].

[sling-org-apache-sling-starter-startup] 05/10: Add svn info

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 578a838f4db0d69e51389f21265e4abf6955fd83
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 06:33:04 2017 +0000

    Add svn info
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811290 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pom.xml b/pom.xml
index 7121df7..75cd1f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,12 @@
         <sling.java.version>8</sling.java.version>
     </properties>
 
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/launchpad/starter.startup</url>
+    </scm>
+
     <build>
         <plugins>
             <plugin>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 08/10: Correct bundle activator

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 116b6b2274b2867ee81ccc3ef5a298a68c2555c1
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 08:00:26 2017 +0000

    Correct bundle activator
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811300 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index c96ac15..b2995f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,7 +49,7 @@
                 <configuration>
                     <instructions>
                         <Bundle-Activator>
-                            org.apache.sling.demo.startup.impl.Activator
+                            org.apache.sling.starter.startup.impl.Activator
                         </Bundle-Activator>
                     </instructions>
                 </configuration>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 03/10: Add missin readme

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 4b49e0a4b93b02396672d0d080c5a55f2d9c2ebc
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 5 12:09:39 2017 +0000

    Add missin readme
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811193 13f79535-47bb-0310-9956-ffa450edef68
---
 README.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..35bf363
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# Apache Sling Starter Startup Module
+
+This module is part of the [Apache Sling](https://sling.apache.org) project.
+
+Provides a module providing a nicer user experience during startup of the Sling Starter application.

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 07/10: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 21be1d4dd802f65cca4fdd33d4e6498256ea6d75
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 06:33:42 2017 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811293 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 451cade..c96ac15 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     </parent>
 
     <artifactId>org.apache.sling.starter.startup</artifactId>
-    <version>1.0.0</version>
+    <version>1.0.1-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Starter Startup Module</name>
@@ -35,9 +35,9 @@
     </properties>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.0</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.0</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.starter.startup-1.0.0</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/launchpad/starter.startup</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 04/10: Add javadoc plugin configuration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 9833c8999d44389da31ed2c1d48cab6899b7d1c1
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 5 12:14:17 2017 +0000

    Add javadoc plugin configuration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811194 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pom.xml b/pom.xml
index b98efab..7121df7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,15 @@
                     </instructions>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <excludePackageNames>
+                        org.apache.sling.starter.startup.impl
+                    </excludePackageNames>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
     <dependencies>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 06/10: [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.0

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 1ad673f4e2574944cda7db2812f477240adc1604
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 06:33:26 2017 +0000

    [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.0
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811291 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 75cd1f0..451cade 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     </parent>
 
     <artifactId>org.apache.sling.starter.startup</artifactId>
-    <version>0.0.1-SNAPSHOT</version>
+    <version>1.0.0</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Starter Startup Module</name>
@@ -35,9 +35,9 @@
     </properties>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/launchpad/starter.startup</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.0</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.0</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.starter.startup-1.0.0</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 10/10: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit f1c8124ec437db65e0c7c6a1aaed64f460e43ba3
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 08:00:59 2017 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811303 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index e1d6899..7cc9ace 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     </parent>
 
     <artifactId>org.apache.sling.starter.startup</artifactId>
-    <version>1.0.2</version>
+    <version>1.0.3-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Starter Startup Module</name>
@@ -35,9 +35,9 @@
     </properties>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.2</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.2</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.starter.startup-1.0.2</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/launchpad/starter.startup</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 09/10: [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.2

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 973c2eb28c658a84b9b55e1520738ee420cbdb38
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Oct 6 08:00:43 2017 +0000

    [maven-release-plugin] prepare release org.apache.sling.starter.startup-1.0.2
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811301 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index b2995f9..e1d6899 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     </parent>
 
     <artifactId>org.apache.sling.starter.startup</artifactId>
-    <version>1.0.1-SNAPSHOT</version>
+    <version>1.0.2</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Starter Startup Module</name>
@@ -35,9 +35,9 @@
     </properties>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/launchpad/starter.startup</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/launchpad/starter.startup</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.2</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.starter.startup-1.0.2</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.starter.startup-1.0.2</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 02/10: Rename package

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 9c71cf15e0cb8db0730627ea1c14091960f364d5
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 5 11:42:19 2017 +0000

    Rename package
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811188 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                             | 6 +++---
 .../org/apache/sling/{demo => starter}/startup/impl/Activator.java  | 2 +-
 .../sling/{demo => starter}/startup/impl/HttpStartupSetup.java      | 2 +-
 .../apache/sling/{demo => starter}/startup/impl/StartupFilter.java  | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pom.xml b/pom.xml
index e988aff..b98efab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,13 +21,13 @@
         <relativePath />
     </parent>
 
-    <artifactId>org.apache.sling.demo.startup</artifactId>
+    <artifactId>org.apache.sling.starter.startup</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
-    <name>Apache Sling Demo Startup Bundle</name>
+    <name>Apache Sling Starter Startup Module</name>
     <description>
-        A module for handling demo startup.
+        A module for handling the startup of the Apache Sling Starter.
     </description>
 
     <properties>
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/Activator.java b/src/main/java/org/apache/sling/starter/startup/impl/Activator.java
similarity index 99%
rename from src/main/java/org/apache/sling/demo/startup/impl/Activator.java
rename to src/main/java/org/apache/sling/starter/startup/impl/Activator.java
index 65b012d..a1e6631 100644
--- a/src/main/java/org/apache/sling/demo/startup/impl/Activator.java
+++ b/src/main/java/org/apache/sling/starter/startup/impl/Activator.java
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sling.demo.startup.impl;
+package org.apache.sling.starter.startup.impl;
 
 import java.util.Timer;
 import java.util.TimerTask;
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java b/src/main/java/org/apache/sling/starter/startup/impl/HttpStartupSetup.java
similarity index 98%
rename from src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java
rename to src/main/java/org/apache/sling/starter/startup/impl/HttpStartupSetup.java
index f6b9477..efa3b65 100644
--- a/src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java
+++ b/src/main/java/org/apache/sling/starter/startup/impl/HttpStartupSetup.java
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sling.demo.startup.impl;
+package org.apache.sling.starter.startup.impl;
 
 import java.util.Dictionary;
 import java.util.Hashtable;
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java b/src/main/java/org/apache/sling/starter/startup/impl/StartupFilter.java
similarity index 97%
rename from src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java
rename to src/main/java/org/apache/sling/starter/startup/impl/StartupFilter.java
index 8819505..d638753 100644
--- a/src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java
+++ b/src/main/java/org/apache/sling/starter/startup/impl/StartupFilter.java
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sling.demo.startup.impl;
+package org.apache.sling.starter.startup.impl;
 
 import java.io.IOException;
 import java.io.PrintWriter;

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-starter-startup] 01/10: Move starter startup bundle

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-startup.git

commit 1af49b79971489e0e47b395af9a07970120ca331
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 5 11:38:40 2017 +0000

    Move starter startup bundle
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1811187 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  74 ++++++++++
 .../apache/sling/demo/startup/impl/Activator.java  | 154 +++++++++++++++++++++
 .../sling/demo/startup/impl/HttpStartupSetup.java  | 122 ++++++++++++++++
 .../sling/demo/startup/impl/StartupFilter.java     |  62 +++++++++
 4 files changed, 412 insertions(+)

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..e988aff
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,74 @@
+<?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">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.sling</groupId>
+        <artifactId>sling</artifactId>
+        <version>32</version>
+        <relativePath />
+    </parent>
+
+    <artifactId>org.apache.sling.demo.startup</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+
+    <name>Apache Sling Demo Startup Bundle</name>
+    <description>
+        A module for handling demo startup.
+    </description>
+
+    <properties>
+        <sling.java.version>8</sling.java.version>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-Activator>
+                            org.apache.sling.demo.startup.impl.Activator
+                        </Bundle-Activator>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>javax.servlet-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.service.http.whiteboard</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.installer.api</artifactId>
+            <version>1.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/Activator.java b/src/main/java/org/apache/sling/demo/startup/impl/Activator.java
new file mode 100644
index 0000000..65b012d
--- /dev/null
+++ b/src/main/java/org/apache/sling/demo/startup/impl/Activator.java
@@ -0,0 +1,154 @@
+/*
+ * 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 org.apache.sling.demo.startup.impl;
+
+import java.util.Timer;
+import java.util.TimerTask;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import org.apache.sling.installer.api.info.InfoProvider;
+import org.apache.sling.installer.api.info.InstallationState;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+import org.osgi.util.tracker.ServiceTracker;
+import org.osgi.util.tracker.ServiceTrackerCustomizer;
+
+public class Activator implements BundleActivator {
+
+    private final String[] REQUIRED_SERVICES = new String[] {
+            "org.apache.sling.api.auth.Authenticator",
+            "org.apache.sling.api.resource.ResourceResolverFactory",
+            "org.apache.sling.api.servlets.ServletResolver"
+    };
+
+    private volatile ServiceTracker<InfoProvider, InfoProvider> infoProviderTracker;
+
+    private volatile HttpStartupSetup httpSetup;
+
+    private final AtomicBoolean stopped = new AtomicBoolean(false);
+
+    @Override
+    public void start(final BundleContext context) throws Exception {
+        this.httpSetup = new HttpStartupSetup(context);
+        this.httpSetup.start();
+
+        this.setupInfoProviderTracker(context);
+    }
+
+    @Override
+    public void stop(final BundleContext context) throws Exception {
+        stopped.set(true);
+        this.stopInfoProviderTracker();
+
+        if ( this.httpSetup != null ) {
+            this.httpSetup.stop();
+            this.httpSetup = null;
+        }
+    }
+
+    /**
+     * Setup the info provider tracker
+     * @param context The bundle context
+     */
+    private void setupInfoProviderTracker(final BundleContext context) {
+        this.infoProviderTracker = new ServiceTracker<>(context, InfoProvider.class, new ServiceTrackerCustomizer<InfoProvider, InfoProvider>() {
+
+            private final AtomicInteger counter = new AtomicInteger();
+
+            private final Timer timer = new Timer();
+
+            @Override
+            public InfoProvider addingService(final ServiceReference<InfoProvider> reference) {
+                if ( stopped.get() ) {
+                    return null;
+                }
+                final InfoProvider service = context.getService(reference);
+                if ( counter.incrementAndGet() == 1 ) {
+                    startCheck(service);
+                }
+                return service;
+            }
+
+            @Override
+            public void modifiedService(final ServiceReference<InfoProvider> reference, final InfoProvider service) {
+                // nothing to do
+            }
+
+            @Override
+            public void removedService(final ServiceReference<InfoProvider> reference, final InfoProvider service) {
+                if ( counter.decrementAndGet() == 0 ) {
+                    stopCheck();
+                }
+                context.ungetService(reference);
+            }
+
+            private void startCheck(final InfoProvider service) {
+                final TimerTask task = new TimerTask() {
+                    @Override
+                    public void run() {
+                        final InstallationState state = service.getInstallationState();
+                        if ( state.getActiveResources().isEmpty()
+                             && state.getUntransformedResources().isEmpty()
+                             && checkServices(context)) {
+
+                            httpSetup.stop();
+                            this.cancel();
+                        }
+                    }
+                };
+                timer.schedule(task, 1000, 1000);
+            }
+
+            private void stopCheck() {
+                timer.cancel();
+                if ( !stopped.get() ) {
+                    httpSetup.start();
+                }
+            }
+
+
+        });
+        this.infoProviderTracker.open();
+    }
+
+    /**
+     * Stop the info provider tracker
+     */
+    private void stopInfoProviderTracker() {
+        if ( infoProviderTracker != null ) {
+            infoProviderTracker.close();
+            infoProviderTracker = null;
+        }
+    }
+
+    private boolean checkServices(final BundleContext context) {
+        for(final String name : REQUIRED_SERVICES) {
+            final ServiceReference<?> ref = context.getServiceReference(name);
+            if ( ref == null ) {
+                return false;
+            }
+            final Object service = context.getService(ref);
+            if ( service == null ) {
+                return false;
+            }
+            context.ungetService(ref);
+        }
+        return true;
+    }
+}
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java b/src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java
new file mode 100644
index 0000000..f6b9477
--- /dev/null
+++ b/src/main/java/org/apache/sling/demo/startup/impl/HttpStartupSetup.java
@@ -0,0 +1,122 @@
+/*
+ * 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 org.apache.sling.demo.startup.impl;
+
+import java.util.Dictionary;
+import java.util.Hashtable;
+
+import javax.servlet.Filter;
+import javax.servlet.Servlet;
+import javax.servlet.http.HttpServlet;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.service.http.context.ServletContextHelper;
+import org.osgi.service.http.whiteboard.HttpWhiteboardConstants;
+
+public class HttpStartupSetup {
+
+    private static final String CONTEXT_NAME = "internal.sling.setup";
+
+    private volatile ServiceRegistration<ServletContextHelper> httpContextRegistration;
+
+    private volatile ServiceRegistration<Servlet> defaultServletRegistration;
+
+    private volatile ServiceRegistration<Filter> startupFilterRegistration;
+
+    private final BundleContext context;
+
+    public HttpStartupSetup(final BundleContext context) {
+        this.context = context;
+    }
+
+    public void start() {
+        this.registerHttpContext();
+        this.registerStartupFilter();
+    }
+
+    public void stop() {
+        this.unregisterStartupFilter();
+        this.unregisterHttpContext();
+    }
+
+    /**
+     * Register the http context
+     * @param context The bundle context
+     */
+    private void registerHttpContext() {
+        final Dictionary<String, Object> properties = new Hashtable<>();
+        properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME, CONTEXT_NAME);
+        properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_PATH, "/");
+        properties.put(Constants.SERVICE_RANKING, Integer.MAX_VALUE);
+
+        this.httpContextRegistration = context.registerService(ServletContextHelper.class,
+            new ServletContextHelper() {
+            }, properties);
+
+        final Dictionary<String, Object> servletProps = new Hashtable<>();
+        servletProps.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT,
+                "(" + HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=" + CONTEXT_NAME + ")");
+        servletProps.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, "/");
+
+        this.defaultServletRegistration = context.registerService(Servlet.class, new HttpServlet() {
+
+            private static final long serialVersionUID = 1L;
+
+        }, servletProps);
+    }
+
+    /**
+     * Unregister the http context
+     */
+    private void unregisterHttpContext() {
+        if ( this.defaultServletRegistration != null ) {
+            this.defaultServletRegistration.unregister();
+            this.defaultServletRegistration = null;
+        }
+        if ( this.httpContextRegistration != null ) {
+            this.httpContextRegistration.unregister();
+            this.httpContextRegistration = null;
+        }
+    }
+
+    /**
+     * Register the startup filter
+     * @param context The bundle context
+     */
+    private void registerStartupFilter() {
+        final Dictionary<String, Object> properties = new Hashtable<>();
+        properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT,
+                "(" + HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=" + CONTEXT_NAME + ")");
+        properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN, "/");
+        properties.put(Constants.SERVICE_RANKING, Integer.MAX_VALUE);
+
+        this.startupFilterRegistration = context.registerService(Filter.class,
+            new StartupFilter(), properties);
+    }
+
+    /**
+     * Unregister the startup filter
+     */
+    private void unregisterStartupFilter() {
+        if ( this.startupFilterRegistration != null ) {
+            this.startupFilterRegistration.unregister();
+            this.startupFilterRegistration = null;
+        }
+    }
+}
diff --git a/src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java b/src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java
new file mode 100644
index 0000000..8819505
--- /dev/null
+++ b/src/main/java/org/apache/sling/demo/startup/impl/StartupFilter.java
@@ -0,0 +1,62 @@
+/*
+ * 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 org.apache.sling.demo.startup.impl;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletResponse;
+
+public class StartupFilter implements Filter {
+
+    @Override
+    public void init(final FilterConfig filterConfig) throws ServletException {
+        // nothing to do
+    }
+
+    @Override
+    public void doFilter(final ServletRequest request,
+            final ServletResponse response,
+            final FilterChain chain)
+            throws IOException, ServletException {
+        response.setContentType("text/html");
+        response.setCharacterEncoding("utf-8");
+        ((HttpServletResponse)response).setHeader("Cache-Control", "no-store");
+        final PrintWriter pw = response.getWriter();
+
+        pw.println("<html><head>");
+        pw.println("<META HTTP-EQUIV=\"refresh\" CONTENT=\"5\">");
+        pw.println("<title>Apache Sling...</title></head>");
+        pw.println("<body>");
+        pw.println("<h1>Apache Sling is starting up....</h1>");
+        pw.println("</body>");
+        pw.println("</html>");
+
+        pw.flush();
+    }
+
+    @Override
+    public void destroy() {
+        // nothing to do
+    }
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.