Subversion Repository Public Repository

litesoft

Diff Revisions 315 vs 361 for /trunk/Java/ScarPlus/src/com/esotericsoftware/scar/Utils.java

Diff revisions: vs.
  @@ -226,7 +226,16 @@
226 226 StringBuilder buffer = new StringBuilder( 256 );
227 227 for ( String text : command )
228 228 {
229 - buffer.append( text );
229 + if ( text.contains( " " ) )
230 + {
231 + buffer.append( '"' );
232 + buffer.append( text );
233 + buffer.append( '"' );
234 + }
235 + else
236 + {
237 + buffer.append( text );
238 + }
230 239 buffer.append( ' ' );
231 240 }
232 241 LOGGER.trace.log( "Executing command: ", buffer );