cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/5] git commit: updated refs/heads/master to 509c83b
Date Mon, 15 Jun 2015 09:04:13 GMT
Fix findbugs encoding warning in CitrixResourceBase Output of text files should be UTF-8, this
is the default for linux, will now always use the same format for every platform

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #395


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/faa38ad4
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/faa38ad4
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/faa38ad4

Branch: refs/heads/master
Commit: faa38ad41626300b971b86a9b6e8636e0e66f26c
Parents: aeccd8a
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Fri Jun 12 22:41:59 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 11:59:38 2015 +0300

----------------------------------------------------------------------
 .../cloud/hypervisor/xenserver/resource/CitrixResourceBase.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/faa38ad4/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
b/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
index 5366927..87b210b 100644
--- a/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
+++ b/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
@@ -19,7 +19,8 @@ package com.cloud.hypervisor.xenserver.resource;
 import java.io.BufferedReader;
 import java.io.BufferedWriter;
 import java.io.File;
-import java.io.FileWriter;
+import java.io.FileOutputStream;
+import java.io.OutputStreamWriter;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.net.MalformedURLException;
@@ -5024,7 +5025,7 @@ public abstract class CitrixResourceBase implements ServerResource,
HypervisorRe
                         if (result && content != null && !content.isEmpty())
{
                             try {
                                 File file = new File(folder+"/"+fileName+".txt");
-                                FileWriter fw = new FileWriter(file.getAbsoluteFile());
+                                OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(file.getAbsoluteFile()),"UTF-8");
                                 BufferedWriter bw = new BufferedWriter(fw);
                                 bw.write(content);
                                 bw.close();


Mime
View raw message