karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r960091 - /karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java
Date Fri, 02 Jul 2010 19:27:39 GMT
Author: gnodet
Date: Fri Jul  2 19:27:38 2010
New Revision: 960091

URL: http://svn.apache.org/viewvc?rev=960091&view=rev
Log:
KARAF-102: The client jar does not work when given a command to execute on the command line

Modified:
    karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java

Modified: karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java
URL: http://svn.apache.org/viewvc/karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java?rev=960091&r1=960090&r2=960091&view=diff
==============================================================================
--- karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java (original)
+++ karaf/trunk/client/src/main/java/org/apache/karaf/client/Main.java Fri Jul  2 19:27:38
2010
@@ -113,8 +113,8 @@ public class Main {
             }
             ClientChannel channel;
 			if (sb.length() > 0) {
- 				channel = session.createChannel("exec");
-	            channel.setIn(new ByteArrayInputStream(sb.append("\n").toString().getBytes()));
+                channel = session.createChannel("exec", sb.append("\n").toString());
+                channel.setIn(new ByteArrayInputStream(new byte[0]));
 			} else {
                 terminal = new TerminalFactory().getTerminal();
  				channel = session.createChannel("shell");



Mime
View raw message