You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2012/01/28 13:43:55 UTC

svn commit: r1237054 - /jmeter/trunk/build.xml

Author: sebb
Date: Sat Jan 28 12:43:55 2012
New Revision: 1237054

URL: http://svn.apache.org/viewvc?rev=1237054&view=rev
Log:
Minor tweak, don't use bare conditional blocks

Modified:
    jmeter/trunk/build.xml

Modified: jmeter/trunk/build.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/build.xml?rev=1237054&r1=1237053&r2=1237054&view=diff
==============================================================================
--- jmeter/trunk/build.xml (original)
+++ jmeter/trunk/build.xml Sat Jan 28 12:43:55 2012
@@ -2473,12 +2473,15 @@ run JMeter unless all the JMeter jars ar
         {
             StringTokenizer st = new StringTokenizer(command);
             String[] cmdarray = new String[st.countTokens()];
-            for (int i = 0; st.hasMoreTokens(); i++)
+            for (int i = 0; st.hasMoreTokens(); i++) {
                 cmdarray[i] = st.nextToken();
+            }
+            // Merge stderr with stdout so only have to fetch one stream
             proc = new ProcessBuilder(cmdarray).redirectErrorStream(true).start();
             din = new DataInputStream( proc.getInputStream() );
-            while( (line=din.readLine()) != null )
+            while( (line=din.readLine()) != null ) {
                 print(line);
+            }
             return this.proc.exitValue();
         }
           keyname = project.getProperty("gpg.keyname");