[Libreoffice-commits] core.git: bean/com
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Tue Sep 16 23:12:28 PDT 2014
bean/com/sun/star/beans/LocalOfficeConnection.java | 3 ++-
bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 99920c36e926471311b940902c132d48370328ca
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Tue Sep 16 18:34:08 2014 +0200
bean: Array concatenated with a String
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Arrays.html#toString(java.lang.Object[])
Change-Id: I42090bf534a9a59fa97061ec2855f79328b1dd45
Reviewed-on: https://gerrit.libreoffice.org/11478
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/bean/com/sun/star/beans/LocalOfficeConnection.java b/bean/com/sun/star/beans/LocalOfficeConnection.java
index e972e2b..b091d54 100644
--- a/bean/com/sun/star/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/beans/LocalOfficeConnection.java
@@ -24,6 +24,7 @@ import java.io.UnsupportedEncodingException;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
+import java.util.Arrays;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XEventListener;
@@ -594,7 +595,7 @@ public class LocalOfficeConnection
// start process
mProcess = Runtime.getRuntime().exec(cmdArray);
if ( mProcess == null )
- throw new RuntimeException( "cannot start soffice: " + cmdArray );
+ throw new RuntimeException( "cannot start soffice: " + Arrays.toString(cmdArray) );
}
/**
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
index f1299cd..7f1a95a 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
@@ -24,6 +24,7 @@ import java.io.UnsupportedEncodingException;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
+import java.util.Arrays;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XComponent;
@@ -725,7 +726,7 @@ public class LocalOfficeConnection
// start process
mProcess = Runtime.getRuntime().exec(cmdArray);
if ( mProcess == null )
- throw new com.sun.star.uno.RuntimeException( "cannot start soffice: " + cmdArray );
+ throw new com.sun.star.uno.RuntimeException( "cannot start soffice: " + Arrays.toString(cmdArray) );
new StreamProcessor(mProcess.getInputStream(), System.out);
new StreamProcessor(mProcess.getErrorStream(), System.err);
}
More information about the Libreoffice-commits
mailing list