jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1542839 - /jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java
Date Sun, 17 Nov 2013 21:51:41 GMT
Author: pmouawad
Date: Sun Nov 17 21:51:41 2013
New Revision: 1542839

URL: http://svn.apache.org/r1542839
Log:
Test correctly keytool command success

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java?rev=1542839&r1=1542838&r2=1542839&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java Sun Nov 17 21:51:41
2013
@@ -393,8 +393,8 @@ public class KeyToolUtils {
         arguments.add(keytoolPath);
         arguments.add("-help"); // $NON-NLS-1$
         try {
-            nativeCommand.run(arguments);
-            return true;
+            int status = nativeCommand.run(arguments);
+            return status == 0;
         } catch (IOException ioe) {
         	return false;
         } catch (InterruptedException e) {



Mime
View raw message