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

rombert pushed a commit to annotated tag 
org.apache.sling.installer.provider.file-1.0.4
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-provider-file.git

commit 996b2bddb151c1e6a024343fd65b339ba67b1edb
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Fri Aug 22 11:56:16 2014 +0000

    SLING-3850 : Add comments to the OSGi configuration files stored in the 
repository generated by configuration writeback
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/installer/providers/file@1619762 
13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                       | 11 +++++++++--
 .../sling/installer/provider/file/impl/FileInstaller.java     |  1 +
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 34aeb2f..9cf4cc2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,13 @@
                         <Bundle-Activator>
                             
org.apache.sling.installer.provider.file.impl.Activator
                         </Bundle-Activator>
+                        <!-- 
+                             We need at least 3.1.2 as this allows reading 
comments from a config
+                         -->
+                        <Import-Package>
+                            org.apache.sling.installer.api;version="[3.1.2,4)",
+                            *
+                        </Import-Package>
                         <Private-Package>
                             org.apache.sling.installer.provider.file.impl.*
                         </Private-Package>
@@ -81,8 +88,8 @@
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
-            <artifactId>org.apache.sling.installer.api</artifactId>
-            <version>1.0.0</version>
+            <artifactId>org.apache.sling.installer.core</artifactId>
+            <version>3.5.3-SNAPSHOT</version>
             <scope>provided</scope>
         </dependency>
       <!-- We use a class from the config admin implementation to read config 
files -->
diff --git 
a/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
 
b/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
index 3726746..a12cc7c 100644
--- 
a/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
+++ 
b/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
@@ -195,6 +195,7 @@ public class FileInstaller
             file.getParentFile().mkdirs();
             final FileOutputStream fos = new FileOutputStream(file);
             try {
+                fos.write("# Configuration created by Apache Sling File 
Installer\n".getBytes("UTF-8"));
                 ConfigurationHandler.write(fos, dict);
             } finally {
                 try {

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to