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-installer-factory-model.git

commit 2d07cded144d3e966852aec21897da9833da7150
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Sat Nov 12 15:46:45 2016 +0000

    Use java 7 as base
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769390 
13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                               | 4 ----
 .../apache/sling/installer/factory/model/impl/RepositoryAccess.java   | 3 ++-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 5a600d6..e6c2c03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,10 +35,6 @@
         Provides support for the provisioning model to the Apache Sling OSGi 
installer
     </description>
 
-    <properties>
-        <sling.java.version>8</sling.java.version>
-    </properties>
-
     <scm>
         
<connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/installer/factories/model</connection>
         <developerConnection> 
scm:svn:https://svn.apache.org/repos/asf/sling/trunk/installer/factories/model</developerConnection>
diff --git 
a/src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java
 
b/src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java
index 68792cf..a2c9c4d 100644
--- 
a/src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java
+++ 
b/src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java
@@ -21,6 +21,7 @@ package org.apache.sling.installer.factory.model.impl;
 import java.io.File;
 import java.io.IOException;
 import java.lang.ProcessBuilder.Redirect;
+import java.nio.charset.Charset;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.util.ArrayList;
@@ -123,7 +124,7 @@ public class RepositoryAccess {
         lines.add("    </dependencies>");
         lines.add("</project>");
         logger.info("Writing pom to {}", dir);
-        Files.write(dir.resolve("pom.xml"), lines);
+        Files.write(dir.resolve("pom.xml"), lines, Charset.forName("UTF-8"));
 
         final File output = dir.resolve("output.txt").toFile();
         final File error = dir.resolve("error.txt").toFile();

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

Reply via email to